/developtools/hiperf/test/unittest/common/native/ |
D | perf_event_record_test.cpp | 178 PerfRecordLost record((uint8_t *)&data); variable 179 ASSERT_EQ(record.GetType(), PERF_RECORD_LOST_SAMPLES); 180 ASSERT_EQ(record.GetName(), RECORDNAME_LOST); 181 ASSERT_EQ(record.GetMisc(), PERF_RECORD_MISC_KERNEL); 182 ASSERT_EQ(record.GetHeaderSize(), HEADER_SIZE); 183 ASSERT_EQ(record.GetSize(), sizeof(data)); 186 ASSERT_TRUE(record.GetBinary(buff)); 200 PerfRecordExit record((uint8_t *)&data); variable 201 ASSERT_EQ(record.GetType(), PERF_RECORD_EXIT); 202 ASSERT_EQ(record.GetName(), RECORDNAME_EXIT); [all …]
|
D | report_protobuf_file_test.cpp | 161 auto protobufReadBack = [&](Proto::HiperfRecord &record) { in __anondb9e9e190102() argument 162 printf("record name %s %d\n", record.GetTypeName().c_str(), record.RecordType_case()); in __anondb9e9e190102() 165 if (record.has_thread()) { in __anondb9e9e190102() 166 const VirtualThreadInfo &message = record.thread(); in __anondb9e9e190102() 192 auto protobufReadBack = [&](Proto::HiperfRecord &record) { in __anondb9e9e190202() argument 193 printf("record name %s %d\n", record.GetTypeName().c_str(), record.RecordType_case()); in __anondb9e9e190202() 196 if (record.has_statistic()) { in __anondb9e9e190202() 197 const SampleStatistic &message = record.statistic(); in __anondb9e9e190202() 223 auto protobufReadBack = [&](Proto::HiperfRecord &record) { in __anondb9e9e190302() argument 224 printf("record name %s %d\n", record.GetTypeName().c_str(), record.RecordType_case()); in __anondb9e9e190302() [all …]
|
D | perf_events_test.cpp | 44 static bool RecordCount(std::unique_ptr<PerfEventRecord> record); 74 bool PerfEventsTest::RecordCount(std::unique_ptr<PerfEventRecord> record) in RecordCount() argument 77 if (record->GetType() == PERF_RECORD_SAMPLE) { in RecordCount() 78 if (record->GetType() == PERF_RECORD_SAMPLE) { in RecordCount() 80 record.release(); in RecordCount()
|
D | virtual_runtime_test.cpp | 44 bool RecordCallBack(std::unique_ptr<PerfEventRecord> record); 72 bool VirtualRuntimeTest::RecordCallBack(std::unique_ptr<PerfEventRecord> record) in RecordCallBack() argument 75 printf("callbackCount_ %zu: type %d\n", callbackCount_, record->GetType()); in RecordCallBack() 109 PerfEventRecord &record = static_cast<PerfEventRecord &>(recordComm); variable 113 runtime_->UpdateFromRecord(record);
|
/developtools/hiperf/src/ |
D | report_protobuf_file.cpp | 32 HiperfRecord record; in BeforeClose() local 33 SampleStatistic *message = record.mutable_statistic(); in BeforeClose() 37 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong()); in BeforeClose() 38 record.SerializeToCodedStream(protpbufCodedOutputStream_.get()); in BeforeClose() 101 bool ReportProtobufFileWriter::ProcessRecord(const PerfEventRecord &record) in ProcessRecord() argument 103 HLOGM("ProcessRecord %d", record.GetType()); in ProcessRecord() 104 if (record.GetType() == PERF_RECORD_SAMPLE) { in ProcessRecord() 106 } else if (record.GetType() == PERF_RECORD_LOST_SAMPLES) { in ProcessRecord() 107 ProcessRecord(*static_cast<const PerfRecordLost *>(&record)); in ProcessRecord() 108 } else if (record.GetType() == PERF_RECORD_COMM) { in ProcessRecord() [all …]
|
D | perf_file_writer.cpp | 119 bool PerfFileWriter::WriteRecord(const PerfEventRecord &record) in WriteRecord() argument 126 HLOGV("write '%s'", record.GetName().c_str()); in WriteRecord() 128 if (record.GetSize() > RECORD_SIZE_LIMIT) { in WriteRecord() 129 HLOGD("%s record size exceed limit", record.GetName().c_str()); in WriteRecord() 135 if (!record.GetBinary(buf)) { in WriteRecord() 139 if (!Write(buf.data(), record.GetSize())) { in WriteRecord() 142 dataSection_.size += record.GetSize(); in WriteRecord() 184 … auto record = GetPerfSampleFromCacheMain(static_cast<perf_event_type>(header->type), in ReadRecords() local 187 if (record == nullptr) { in ReadRecords() 192 callback(std::move(record)); in ReadRecords()
|
D | subcommand_record.cpp | 1276 bool SubCommandRecord::ProcessRecord(std::unique_ptr<PerfEventRecord> record) in ProcessRecord() argument 1278 if (record == nullptr) { in ProcessRecord() 1285 if (record->GetType() == PERF_RECORD_SAMPLE) { in ProcessRecord() 1290 if (record->GetType() == PERF_RECORD_SAMPLE) { in ProcessRecord() 1292 record.release(); in ProcessRecord() 1301 if (record->GetPid() == pid) { in ProcessRecord() 1302 if (record->GetType() == PERF_RECORD_SAMPLE) { in ProcessRecord() 1304 record.release(); in ProcessRecord() 1314 virtualRuntime_.UpdateFromRecord(*record); in ProcessRecord() 1319 return SaveRecord(std::move(record), true); in ProcessRecord() [all …]
|
D | subcommand_dump.cpp | 401 void SubCommandDump::ExprotUserData(std::unique_ptr<PerfEventRecord> &record) in ExprotUserData() argument 403 if (record->GetType() == PERF_RECORD_SAMPLE) { in ExprotUserData() 407 PerfRecordSample *recordSample = static_cast<PerfRecordSample *>(record.get()); in ExprotUserData() 442 auto recordcCallback = [&](std::unique_ptr<PerfEventRecord> record) { in DumpDataPortion() argument 443 if (record == nullptr) { in DumpDataPortion() 450 ExprotUserData(record); in DumpDataPortion() 454 vr_.UpdateFromRecord(*record); in DumpDataPortion() 457 record->Dump(indent, outputFilename_, g_outputDump); in DumpDataPortion() 459 if (record->GetType() == PERF_RECORD_SAMPLE) { in DumpDataPortion() 461 static_cast<PerfRecordSample *>(record.release())); in DumpDataPortion()
|
D | virtual_runtime.cpp | 282 auto record = std::make_unique<PerfRecordMmap>(true, 0, 0, map.begin, in UpdateKernelModulesSpaceMaps() local 284 recordCallBack_(std::move(record)); in UpdateKernelModulesSpaceMaps() 295 auto record = std::make_unique<PerfRecordMmap>(true, 0, 0, map.begin, in UpdateKernelSpaceMaps() local 297 recordCallBack_(std::move(record)); in UpdateKernelSpaceMaps() 327 auto record = std::make_unique<PerfRecordMmap>( in UpdateKernelSymbols() local 332 recordCallBack_(std::move(record)); in UpdateKernelSymbols() 435 void VirtualRuntime::UpdateFromRecord(PerfEventRecord &record) in UpdateFromRecord() argument 440 if (record.GetType() == PERF_RECORD_SAMPLE) { in UpdateFromRecord() 441 auto recordSample = static_cast<PerfRecordSample *>(&record); in UpdateFromRecord() 446 } else if (record.GetType() == PERF_RECORD_MMAP) { in UpdateFromRecord() [all …]
|
D | perf_file_reader.cpp | 286 std::unique_ptr<PerfEventRecord> record = GetPerfEventRecord( in ReadRecord() local 289 if (!record) { in ReadRecord() 292 HLOGV("record type %u", record->GetType()); in ReadRecord() 299 callback(std::move(record)); in ReadRecord()
|
/developtools/integration_verification/tools/fotff/rec/ |
D | record.go | 83 if record, ok := Records[result.TestCaseName]; ok && record.Status != tester.ResultPass { 117 record := Records[testcase] 118 …iest fail package is [%s], now finding out the first fail...", testcase, record.LatestSuccessPkg, … 119 …issueURL, err := FindOutTheFirstFail(m, t, testcase, record.LatestSuccessPkg, pkgName, testcases[i… 124 …], the earliest fail package is [%s], fail issue URL is [%s]", testcase, record.LatestSuccessPkg, … 128 LatestSuccessPkg: record.LatestSuccessPkg,
|
/developtools/packing_tool/adapter/ohos/ |
D | PackFormatter.java | 39 public String format(LogRecord record) { in format() argument 41 builder.append(DF.format(new Date(record.getMillis()))).append(" - "); in format() 42 builder.append(formatMessage(record)); in format()
|
/developtools/hdc/hdc_rust/src/host/ |
D | logger.rs | 111 fn log(&self, record: &log::Record) { in log() 112 if self.enabled(record.metadata()) { in log() 114 let level = &record.level().to_string()[..1]; in log() 115 let file = record.file().unwrap(); in log() 127 record.line().unwrap(), in log() 128 record.args() in log()
|
/developtools/integration_verification/cases/smoke/basic/screenshot32/APL_compare_03/ |
D | compare.py | 71 record=(bundle_name,ErrorType(1).name) 72 records.append(record) 78 record=(bundle_name,ErrorType(2).name) 79 records.append(record) 106 for record in err_records: 107 err_record = set_error_record(record[0],record[1])
|
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/APL_compare_03/ |
D | compare.py | 71 record=(bundle_name,ErrorType(1).name) 72 records.append(record) 78 record=(bundle_name,ErrorType(2).name) 79 records.append(record) 106 for record in err_records: 107 err_record = set_error_record(record[0],record[1])
|
/developtools/global_resource_tool/src/ |
D | resource_table.cpp | 138 RecordItem record; in LoadResTable() local 139 if (!ReadDataRecordPrepare(in, record, pos, static_cast<uint64_t>(length)) || in LoadResTable() 140 !ReadDataRecordStart(in, record, limitKeys, datas, resInfos)) { in LoadResTable() 433 bool ResourceTable::ReadDataRecordPrepare(ifstream &in, RecordItem &record, uint64_t &pos, uint64_t… in ReadDataRecordPrepare() argument 440 in.read(reinterpret_cast<char *>(&record.size), INT_TO_BYTES); in ReadDataRecordPrepare() 441 pos = pos + record.size; in ReadDataRecordPrepare() 446 in.read(reinterpret_cast<char *>(&record.resType), INT_TO_BYTES); in ReadDataRecordPrepare() 447 in.read(reinterpret_cast<char *>(&record.id), INT_TO_BYTES); in ReadDataRecordPrepare() 451 bool ResourceTable::ReadDataRecordStart(std::ifstream &in, RecordItem &record, in ReadDataRecordStart() argument 460 if (value_size + sizeof(uint16_t) > record.size) { in ReadDataRecordStart() [all …]
|
/developtools/hiperf/include/ |
D | report_protobuf_file.h | 38 using ProtobufReadBack = std::function<void(Proto::HiperfRecord &record)>; 44 bool ProcessRecord(const PerfEventRecord &record); 90 bool Dump(const Proto::HiperfRecord &record, int indent = 0);
|
D | perf_file_writer.h | 49 bool WriteRecord(const PerfEventRecord &record); 64 using ProcessRecordCB = const std::function<bool(std::unique_ptr<PerfEventRecord> record)>;
|
/developtools/smartperf_host/trace_streamer/ |
D | huoyantu.sh | 32 sudo perf record -g -F 99 -- ./out/linux_debug/trace_streamer $source -e /tmp/1.db
|
/developtools/hiperf/test/unittest/resource/testdata/ |
D | report_test_sort1.txt | 8 cmdline: hiperf record -d 1 -o /data/local/tmp/dlh.data
|
D | report_test_tids1.txt | 8 cmdline: hiperf record -d 1 -o /data/local/tmp/dlh.data
|
D | report_test_funcs.txt | 8 cmdline: hiperf record -d 1 -o /data/local/tmp/dlh.data
|
D | report_test_dsos.txt | 8 cmdline: hiperf record -d 1 -o /data/local/tmp/dlh.data
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | stack_preprocess.cpp | 912 auto& record = addrIter->second.second; in SetFreeStatisticsData() local 913 ++record->releaseCount; in SetFreeStatisticsData() 914 record->releaseSize += addrIter->second.first; in SetFreeStatisticsData() 915 statisticsPeriodData_[record->callstackId] = record; in SetFreeStatisticsData() 928 auto& record = recordIter->second; in SetAllocStatisticsData() local 929 ++record.applyCount; in SetAllocStatisticsData() 930 record.applySize += rawStack->stackConext->mallocSize; in SetAllocStatisticsData() 937 RecordStatistic record; in SetAllocStatisticsData() local 938 record.pid = rawStack->stackConext->pid; in SetAllocStatisticsData() 939 record.callstackId = stackId; in SetAllocStatisticsData() [all …]
|
/developtools/global_resource_tool/include/ |
D | resource_table.h | 82 …bool ReadDataRecordPrepare(std::ifstream &in, RecordItem &record, uint64_t &pos, uint64_t length) … 83 bool ReadDataRecordStart(std::ifstream &in, RecordItem &record,
|