Home
last modified time | relevance | path

Searched refs:stream_ (Results 1 – 25 of 36) sorted by relevance

12

/developtools/profiler/host/smartperf/trace_streamer/test/unittest/
Dtable_test.cpp32 stream_.InitFilter(); in SetUp()
37 TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::TableTest
50 DataIndex eventSource = stream_.traceDataCache_->GetDataIndex("eventSource");
51 DataIndex appName = stream_.traceDataCache_->GetDataIndex("app1");
52 stream_.traceDataCache_->GetAppNamesData()->AppendAppName(flags, eventSource, appName);
53 auto row = stream_.traceDataCache_->SearchDatabase(sqlSelect.c_str(), false);
70 DataIndex nameId0 = stream_.traceDataCache_->GetDataIndex("args0");
71 DataIndex nameId1 = stream_.traceDataCache_->GetDataIndex("args1");
78 stream_.traceDataCache_->InitDB();
79 stream_.traceDataCache_->GetArgSetData()->AppendNewArg(nameId0, dataType0, value0, argSet0);
[all …]
Dslice_filter_test.cpp33 stream_.InitFilter(); in SetUp()
39 TraceStreamerSelector stream_; member in SysTuning::TraceStreamer::SliceFilterTest
55 DataIndex cat = stream_.traceDataCache_->GetDataIndex("Catalog");
56 DataIndex splitStrIndex = stream_.traceDataCache_->GetDataIndex("call_function_one");
57stream_.streamFilters_->sliceFilter_->BeginSlice("comm", ts, pid1, threadGroupId1, cat, splitStrIn…
58 stream_.streamFilters_->sliceFilter_->EndSlice(ts2, pid1, threadGroupId1);
59 auto slices = stream_.traceDataCache_->GetInternalSlicesData();
75 DataIndex cat = stream_.traceDataCache_->GetDataIndex("Catalog");
76 DataIndex splitStrIndex = stream_.traceDataCache_->GetDataIndex("call_function_one");
77stream_.streamFilters_->sliceFilter_->BeginSlice("comm", ts1, pid1, threadGroupId1, cat, splitStrI…
[all …]
Dmeasure_filter_test.cpp42 stream_.InitFilter(); in SetUp()
48 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::MeasureFilterTest
59 auto nameIndex0 = stream_.traceDataCache_->GetDataIndex(TASK_NAME_0);
61stream_.streamFilters_->threadMeasureFilter_->GetOrCreateFilterId(INTERNAL_THREAD_ID_0, nameIndex0…
64 auto nameIndex1 = stream_.traceDataCache_->GetDataIndex(TASK_NAME_1);
65 …filterId = stream_.streamFilters_->threadMeasureFilter_->GetOrCreateFilterId(INTERNAL_THREAD_ID_1,…
68 Filter* filterTable = stream_.traceDataCache_->GetFilterData();
71 ThreadMeasureFilter* threadMeasureTable = stream_.traceDataCache_->GetThreadMeasureFilterData();
87 auto nameIndex0 = stream_.traceDataCache_->GetDataIndex(TASK_NAME_0);
88 …uint32_t filterId = stream_.streamFilters_->threadFilter_->GetOrCreateFilterId(INTERNAL_THREAD_ID_…
[all …]
Dsmaps_parser_test.cpp30 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::SmapsParserTest
52 HtraceMemParser SmapsEvent(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
65 stream_.traceDataCache_->ExportDatabase(dbPath_);
70 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SMAPS, STAT_EVENT_…
72 EXPECT_TRUE(stream_.traceDataCache_->GetConstProcessMeasureData().Size() == MEM_MAX * 1);
73 EXPECT_EQ(stream_.traceDataCache_->GetConstProcessData().size(), 1);
83 HtraceMemParser SmapsEvent(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
112 stream_.traceDataCache_->ExportDatabase(dbPath_);
117 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SMAPS, STAT_EVENT_…
[all …]
Devent_parser_test.cpp41 stream_.InitFilter(); in SetUp()
52 TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::EventParserTest
75 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
79stream_.traceDataCache_->GetStatAndInfo()->GetValue(TRACE_EVENT_SCHED_SWITCH, STAT_EVENT_DATA_INVA…
80 auto readStatIndex = stream_.traceDataCache_->GetConstSchedSliceData().EndStatesData()[0];
82 auto realTimeStamp = stream_.traceDataCache_->GetConstSchedSliceData().TimeStamData()[0];
84 auto realCpu = stream_.traceDataCache_->GetConstSchedSliceData().CpusData()[0];
105 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
109stream_.traceDataCache_->GetStatAndInfo()->GetValue(TRACE_EVENT_SCHED_SWITCH, STAT_EVENT_DATA_INVA…
130 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
[all …]
Dhtrace_process_parser_test.cpp35 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceProcessParserTest
54 …HtraceProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
56 auto size = stream_.traceDataCache_->GetConstLiveProcessData().Size();
81 …HtraceProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
85 auto size = stream_.traceDataCache_->GetConstLiveProcessData().Size();
121 …HtraceProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
125 auto size = stream_.traceDataCache_->GetConstLiveProcessData().Size();
128 auto pidFirst = stream_.traceDataCache_->GetConstLiveProcessData().ProcessID()[0];
130 auto processNameFirst = stream_.traceDataCache_->GetConstLiveProcessData().ProcessName()[0];
[all …]
Dhtrace_mem_parser_test.cpp36 stream_.InitFilter(); in SetUp()
47 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceMemParserTest
59 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
71 stream_.traceDataCache_->ExportDatabase(dbPath_);
77 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_MEMORY, STAT_EVENT…
89 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
112 stream_.traceDataCache_->ExportDatabase(dbPath_);
118 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_MEMORY, STAT_EVENT…
121 EXPECT_TRUE(stream_.traceDataCache_->GetConstProcessData(1).pid_ == pid);
122 EXPECT_TRUE(stream_.traceDataCache_->GetConstProcessMeasureData().Size() == MEM_MAX * 1);
[all …]
Dhilog_parser_test.cpp35 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HilogParserTest
53 … HtraceHiLogParser htraceHiLogParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
55 auto size = stream_.traceDataCache_->GetConstHilogData().Size();
90 … HtraceHiLogParser htraceHiLogParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
93 auto seq = stream_.traceDataCache_->GetConstHilogData().HilogLineSeqs()[0];
96 auto timestamp = stream_.traceDataCache_->GetConstHilogData().TimeStamData()[0];
99 auto pid = stream_.traceDataCache_->GetConstHilogData().Pids()[0];
102 auto tid = stream_.traceDataCache_->GetConstHilogData().Tids()[0];
105 auto level = stream_.traceDataCache_->GetConstHilogData().Levels()[0];
[all …]
Dhtrace_event_parser_test.cpp43 stream_.InitFilter(); in SetUp()
49 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceEventParserTest
79 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
83 auto realTimeStamp = stream_.traceDataCache_->GetConstSchedSliceData().TimeStamData()[0];
85 auto realCpu = stream_.traceDataCache_->GetConstSchedSliceData().CpusData()[0];
101 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
105 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_EVENT_OTHER, STAT_…
136 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
139 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_EVENT_OTHER, STAT_…
167 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
[all …]
Debpf_file_system_test.cpp34 stream_.InitFilter(); in SetUp()
40 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::EbpfFileSystemTest
102 … std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
108 auto callChainId = stream_.traceDataCache_->GetConstFileSystemSample().CallChainIds()[0];
110 auto type = stream_.traceDataCache_->GetConstFileSystemSample().Types()[0];
112 auto startTs = stream_.traceDataCache_->GetConstFileSystemSample().StartTs()[0];
114 auto endTs = stream_.traceDataCache_->GetConstFileSystemSample().EndTs()[0];
116 auto dur = stream_.traceDataCache_->GetConstFileSystemSample().Durs()[0];
119 auto returnValue = stream_.traceDataCache_->GetConstFileSystemSample().ReturnValues()[0];
121 auto errorCode = stream_.traceDataCache_->GetConstFileSystemSample().ErrorCodes()[0];
[all …]
Dhtrace_network_parser_test.cpp35 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceNetworkParserTest
54 …HtraceNetworkParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
56 auto size = stream_.traceDataCache_->GetConstNetworkData().Size();
83 …HtraceNetworkParser htraceNetworkParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
86 auto size = stream_.traceDataCache_->GetConstNetworkData().Size();
112 …HtraceNetworkParser htraceNetworkParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
129 auto tx = stream_.traceDataCache_->GetConstNetworkData().TxDatas()[0];
131 auto rx = stream_.traceDataCache_->GetConstNetworkData().RxDatas()[0];
133 auto packetIn = stream_.traceDataCache_->GetConstNetworkData().PacketIn()[0];
[all …]
Dhtrace_diskio_parser_test.cpp35 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtracediskioParserTest
54 …HtraceDiskIOParser htraceDiskIOParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
56 auto size = stream_.traceDataCache_->GetConstDiskIOData().Size();
83 …HtraceDiskIOParser htraceDiskioParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
86 auto size = stream_.traceDataCache_->GetConstDiskIOData().Size();
119 …HtraceDiskIOParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()…
132 auto size = stream_.traceDataCache_->GetConstDiskIOData().Size();
135 auto rdCountPerSecFirst = stream_.traceDataCache_->GetConstDiskIOData().RdCountPerSecDatas()[0];
138 auto wrCountPerSecFirst = stream_.traceDataCache_->GetConstDiskIOData().WrCountPerSecDatas()[0];
[all …]
Dhtrace_sys_vmem_parser_test.cpp35 stream_.InitFilter(); in SetUp()
46 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceSysVMemParserTest
58 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
72 stream_.traceDataCache_->ExportDatabase(dbPath_);
79stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SYS_VIRTUAL_MEMORY, STAT_EVENT_RECEI…
81 EXPECT_TRUE(stream_.traceDataCache_->GetConstSysMemMeasureData().Size() == 1);
82 …EXPECT_TRUE(stream_.traceDataCache_->GetConstSysMemMeasureData().ValuesData()[0] == static_cast<in…
93 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
116 stream_.traceDataCache_->ExportDatabase(dbPath_);
123stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SYS_VIRTUAL_MEMORY, STAT_EVENT_RECEI…
[all …]
Dhtrace_sys_mem_parser_test.cpp35 stream_.InitFilter(); in SetUp()
46 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceSysMemParserTest
58 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
73 stream_.traceDataCache_->ExportDatabase(dbPath_);
79 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SYS_MEMORY, STAT_E…
81 EXPECT_EQ(2, stream_.traceDataCache_->GetConstSysMeasureFilterData().Size());
82 …EXPECT_EQ(stream_.traceDataCache_->GetConstSysMemMeasureData().ValuesData()[0], static_cast<int64_…
93 …HtraceMemParser* memParser = new HtraceMemParser(stream_.traceDataCache_.get(), stream_.streamFilt…
118 stream_.traceDataCache_->ExportDatabase(dbPath_);
124 …auto eventCount = stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_SYS_MEMORY, STAT_E…
[all …]
Dbio_parser_test.cpp36 stream_.InitFilter(); in SetUp()
41 TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::EbpfBioParserTest
85 … std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
91 auto callChainId = stream_.traceDataCache_->GetConstBioLatencySampleData().CallChainIds()[0];
93 auto type = stream_.traceDataCache_->GetConstBioLatencySampleData().Types()[0];
95 auto startTs = stream_.traceDataCache_->GetConstBioLatencySampleData().StartTs()[0];
97 auto endTs = stream_.traceDataCache_->GetConstBioLatencySampleData().EndTs()[0];
99 auto dur = stream_.traceDataCache_->GetConstBioLatencySampleData().LatencyDurs()[0];
101 auto tier = stream_.traceDataCache_->GetConstBioLatencySampleData().Tiers()[0];
103 auto size = stream_.traceDataCache_->GetConstBioLatencySampleData().Sizes()[0];
[all …]
Dhidump_parser_test.cpp35 stream_.InitFilter(); in SetUp()
46 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HidumpParserTest
59 …HtraceHidumpParser htraceHidumpParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
61 auto size = stream_.traceDataCache_->GetConstHidumpData().Size();
86 …HtraceHidumpParser htraceHidumpParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
89 auto Fps = stream_.traceDataCache_->GetConstHidumpData().Fpss()[0];
91 auto TimeSpec = stream_.traceDataCache_->GetConstHidumpData().TimeStamData()[0];
93 auto Size = stream_.traceDataCache_->GetConstHidumpData().Size();
139 …HtraceHidumpParser htraceHidumpParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
142 auto Fps_00 = stream_.traceDataCache_->GetConstHidumpData().Fpss()[0];
[all …]
Dhtrace_cpu_data_parser_test.cpp35 stream_.InitFilter(); in SetUp()
41 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceCpuDataParserTest
54 …HtraceCpuDataParser htraceCpuDataParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
56 auto size = stream_.traceDataCache_->GetConstCpuUsageInfoData().Size();
80 …HtraceCpuDataParser htraceCpuDataParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
83 auto size = stream_.traceDataCache_->GetConstCpuUsageInfoData().Size();
114 …HtraceCpuDataParser htraceCpuDataParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get(…
128 auto size = stream_.traceDataCache_->GetConstCpuUsageInfoData().Size();
131 auto totalLoad = stream_.traceDataCache_->GetConstCpuUsageInfoData().TotalLoad()[0];
134 auto userLoad = stream_.traceDataCache_->GetConstCpuUsageInfoData().UserLoad()[0];
[all …]
Dbytrace_parser_test.cpp37 stream_.InitFilter(); in SetUp()
43 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::BytraceParserTest
56 BytraceParser bytraceParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
79 BytraceParser bytraceParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
82 stream_.traceDataCache_->ExportDatabase(dbPath_);
104 BytraceParser bytraceParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
107 stream_.traceDataCache_->ExportDatabase(dbPath_);
129 BytraceParser bytraceParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
132 stream_.traceDataCache_->ExportDatabase(dbPath_);
154 BytraceParser bytraceParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
[all …]
Dpaged_memory_parser_test.cpp34 stream_.InitFilter(); in SetUp()
39 TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::EbpfPagedMemoryParserTest
81 … std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
87 auto callChainId = stream_.traceDataCache_->GetConstPagedMemorySampleData().CallChainIds()[0];
89 auto type = stream_.traceDataCache_->GetConstPagedMemorySampleData().Types()[0];
92 auto startTs = stream_.traceDataCache_->GetConstPagedMemorySampleData().StartTs()[0];
94 auto endTs = stream_.traceDataCache_->GetConstPagedMemorySampleData().EndTs()[0];
96 auto dur = stream_.traceDataCache_->GetConstPagedMemorySampleData().Durs()[0];
98 auto size = stream_.traceDataCache_->GetConstPagedMemorySampleData().Sizes()[0];
101 auto addr = stream_.traceDataCache_->GetConstPagedMemorySampleData().Addr()[0];
[all …]
Dhtrace_irq_event_test.cpp34 stream_.InitFilter(); in SetUp()
40 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceIrqEventTest
69 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
72 EXPECT_TRUE(stream_.traceDataCache_->GetConstIrqData().Size() == 1);
102 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
105 EXPECT_TRUE(stream_.traceDataCache_->GetConstIrqData().Size() == 1);
121 EXPECT_TRUE(stream_.traceDataCache_->GetConstIrqData().Size() == 2);
124stream_.traceDataCache_->GetConstStatAndInfo().GetValue(TRACE_EVENT_IRQ_HANDLER_ENTRY, STAT_EVENT_…
157 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
160 EXPECT_TRUE(stream_.traceDataCache_->GetConstIrqData().Size() == 0);
[all …]
Dnative_hook_parser_test.cpp74 stream_.InitFilter(); in SetUp()
80 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::NativeHookParserTest
386 …HtraceNativeHookParser htraceNativeHookParser(stream_.traceDataCache_.get(), stream_.streamFilters…
388 auto size = stream_.traceDataCache_->GetConstHilogData().Size();
425 …HtraceNativeHookParser htraceNativeHookParser(stream_.traceDataCache_.get(), stream_.streamFilters…
430 auto expect_ipid = stream_.streamFilters_->processFilter_->GetInternalPid(PID);
431 auto expect_itid = stream_.streamFilters_->processFilter_->GetInternalTid(TID_01);
434 const NativeHook& nativeHook = stream_.traceDataCache_->GetConstNativeHookData();
438 auto size = stream_.traceDataCache_->GetConstNativeHookData().Size();
442 const NativeHookFrame& nativeHookFrame = stream_.traceDataCache_->GetConstNativeHookFrameData();
[all …]
Dhtrace_binder_event_test.cpp34 stream_.InitFilter(); in SetUp()
40 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceBinderEventTest
80 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
83 EXPECT_TRUE(stream_.traceDataCache_->GetConstInternalSlicesData().Size() == 1);
84 EXPECT_TRUE(stream_.traceDataCache_->GetConstInternalSlicesData().ArgSetIdsData()[0] == 0);
85 EXPECT_TRUE(stream_.traceDataCache_->GetConstArgSetData().Size() == 7);
125 HtraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get());
128 EXPECT_TRUE(stream_.traceDataCache_->GetConstInternalSlicesData().Size() == 1);
129 EXPECT_TRUE(stream_.traceDataCache_->GetConstArgSetData().Size() == 7);
147 EXPECT_TRUE(stream_.traceDataCache_->GetConstInternalSlicesData().Size() == 2);
[all …]
Dhtrace_cpu_detail_parser_test.cpp34 stream_.InitFilter(); in SetUp()
40 SysTuning::TraceStreamer::TraceStreamerSelector stream_ = {}; member in SysTuning::TraceStreamer::HtraceCpuDetailParserTest
54 …HtraceCpuDetailParser htraceCpuDetailParser(stream_.traceDataCache_.get(), stream_.streamFilters_.…
74 …HtraceCpuDetailParser htraceCpuDetailParser(stream_.traceDataCache_.get(), stream_.streamFilters_.…
101 …HtraceCpuDetailParser htraceCpuDetailParser(stream_.traceDataCache_.get(), stream_.streamFilters_.…
106 auto state = stream_.traceDataCache_->GetConstMeasureData().ValuesData()[0];
140 …HtraceCpuDetailParser htraceCpuDetailParser(stream_.traceDataCache_.get(), stream_.streamFilters_.…
145 auto state0 = stream_.traceDataCache_->GetConstMeasureData().ValuesData()[0];
146 auto cpuId0 = stream_.traceDataCache_->GetConstMeasureData().FilterIdData()[0];
147 auto state1 = stream_.traceDataCache_->GetConstMeasureData().ValuesData()[1];
[all …]
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_reader.cpp25 if (stream_.is_open()) { in ~TraceFileReader()
26 stream_.close(); in ~TraceFileReader()
42 stream_.open(path, std::ios_base::in | std::ios_base::binary); in Open()
43 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path.c_str(), errno); in Open()
45 stream_.read(reinterpret_cast<CharPtr>(&header_), sizeof(header_)); in Open()
46 CHECK_TRUE(stream_, false, "read header from %s failed!", path_.c_str()); in Open()
59 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Read()
60 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in Read()
63 size_t offset = GetReadPos(stream_); in Read()
64 stream_.read(reinterpret_cast<CharPtr>(&msgLen), sizeof(msgLen)); in Read()
[all …]
Dtrace_file_writer.cpp46 if (stream_.is_open()) { in ~TraceFileWriter()
47 stream_.close(); in ~TraceFileWriter()
114 stream_.open(path_, std::ios_base::out | std::ios_base::binary); in WriteHeader()
115 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path_.c_str(), errno); in WriteHeader()
120 stream_.write(reinterpret_cast<CharPtr>(&header_), sizeof(header_)); in WriteHeader()
121 CHECK_TRUE(stream_, false, "write initial header to %s failed!", path_.c_str()); in WriteHeader()
130 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Write()
133 stream_.write(reinterpret_cast<CharPtr>(&dataLen), sizeof(dataLen)); in Write()
134 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer size failed!", path_.c_str()); in Write()
139 stream_.write(reinterpret_cast<ConstCharPtr>(data), size); in Write()
[all …]

12