Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 54) sorted by relevance

123

/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerJsCpuProfiler.ts97 const sample = this.samples[id]; constant
98 if (!sample) {
101 let sampleTotalTime = sample.dur;
104 if (sample.startTime > rightNs || sample.endTime < leftNs){
108 const startTime = sample.startTime < leftNs ? leftNs : sample.startTime;
109 const endTime = sample.endTime > rightNs ? rightNs : sample.endTime;
113 if (!samplesIdsArr.includes(sample)) {
114 samplesIdsArr.push(sample);
115 let typeDur = typeMap.get(sample.type);
117 typeMap.set(sample.type, typeDur + sampleTotalTime);
[all …]
DProcedureLogicWorkerPerf.ts404 sample: PerfCountSample,
414 … PerfCallChainMerageData.merageCallChainSample(child, callChainDataList[index], sample, isEnd);
421 PerfCallChainMerageData.merageCallChainSample(node, callChainDataList[index], sample, isEnd);
427 … if (node && !isEnd) this.mergeChildrenByIndex(node, callChainDataList, index, sample, isTopDown);
528 …recursionPerfChargeInitTree(sample: PerfCallChainMerageData, symbolName: string, isSymbol: boolean…
529 …if ((isSymbol && sample.symbolName == symbolName) || (!isSymbol && sample.libName == symbolName)) {
530 (this.splitMapData[symbolName] = this.splitMapData[symbolName] || []).push(sample);
531 sample.isStore++;
533 if (sample.initChildren.length > 0) {
534 sample.initChildren.forEach((child) => {
[all …]
DProcedureLogicWorkerNativeNemory.ts845 for (const sample of samples) { constant
846 const count = this.isStatistic ? sample.count : 1; constant
847 …const analysisSample = new AnalysisSample(sample.id, sample.heapSize, count, sample.eventType, sam…
850 analysisSample.releaseCount = sample.freeCount;
851 analysisSample.releaseSize = sample.freeSize;
852 switch (sample.subTypeId) {
863 analysisSample.subType = this.dataCache.dataDict.get(sample.subTypeId);
867 if (sample.subTypeId) {
868 subType = this.dataCache.dataDict.get(sample.subTypeId);
870 analysisSample.endTs = sample.endTs;
[all …]
DProcedureLogicWorkerFileSystem.ts471 for (let sample of samplesList) {
472 let analysisSample = new FileAnalysisSample(sample);
473 let callChainList = this.dataCache.eBpfCallChainsMap.get(sample.callChainId);
646 samples.forEach((sample) => {
647 totalCount += sample.dur;
648 let callChains = this.createThreadAndType(sample);
655 …currentTreeMapData[callChains[topIndex].symbolsId + '' + callChains[topIndex].pathId + sample.pid];
658 …urrentTreeMapData[callChains[topIndex].symbolsId + '' + callChains[topIndex].pathId + sample.pid] =
662 FileMerageBean.merageCallChainSample(root, callChains[topIndex], sample, false);
663 this.merageChildrenByIndex(root, callChains, topIndex, sample, isTopDown);
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/hiperf/
DTabPerfSampleList.ts73 for (let sample of samples) {
74 let process = this.processMap.get(sample.pid);
75 sample.processName =
77 ? `Process(${sample.pid})`
78 : `${process!.processName || 'Process'}(${sample.pid})`;
79 sample.threadName =
80 sample.threadName == null || sample.threadName == undefined
81 ? `Thread(${sample.tid})`
82 : `${sample.threadName}(${sample.tid})`;
83 sample.coreName = `CPU ${sample.core}`;
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/hiperf/
DTabPerfSampleList.ts73 for (let sample of samples) {
74 let process = this.processMap.get(sample.pid);
75 sample.processName =
77 ? `Process(${sample.pid})`
78 : `${process!.processName || 'Process'}(${sample.pid})`;
79 sample.threadName =
80 sample.threadName == null || sample.threadName == undefined
81 ? `Thread(${sample.tid})`
82 : `${sample.threadName}(${sample.tid})`;
83 sample.coreName = `CPU ${sample.core}`;
[all …]
DTabPerfBottomUp.ts172 sampleArray.forEach((sample) => {
173 if (sample.symbolName && sample.symbolName.toLocaleLowerCase().includes(search)) {
174sample.isSearch = sample.symbolName !== undefined && sample.symbolName.toLocaleLowerCase().include…
176 sample.isSearch = false;
179 sample.isSearch = false;
181 if (sample.children.length > 0) {
182 this.findSearchNode(sample.children, search);
/developtools/profiler/host/smartperf/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerPerf.ts316 samples.forEach((sample) => {
317 totalCount += sample.count;
318 if (this.callChainData[sample.sampleId] && this.callChainData[sample.sampleId].length > 0) {
319 let callChains = [...this.callChainData[sample.sampleId]]; variable
320 this.addOtherCallchainsData(sample, callChains);
323 let root = this.currentTreeMapData[callChains[topIndex].name + sample.pid];
326 this.currentTreeMapData[callChains[topIndex].name + sample.pid] = root;
329 PerfCallChainMerageData.merageCallChainSample(root, callChains[topIndex], sample, false);
330 this.mergeChildrenByIndex(root, callChains, topIndex, sample, isTopDown);
381 sample: PerfCountSample,
[all …]
DProcedureLogicWorkerNativeNemory.ts790 for (const sample of samples) { constant
791 const count = this.isStatistic ? sample.count : 1; constant
792 …const analysisSample = new AnalysisSample(sample.id, sample.heapSize, count, sample.eventType, sam…
795 analysisSample.releaseCount = sample.freeCount;
796 analysisSample.releaseSize = sample.freeSize;
797 switch (sample.subTypeId) {
812 if (sample.subTypeId) {
813 subType = this.dataCache.dataDict.get(sample.subTypeId);
815 analysisSample.endTs = sample.endTs;
816 analysisSample.addr = sample.addr;
[all …]
DProcedureLogicWorkerFileSystem.ts471 for (let sample of samplesList) {
472 let analysisSample = new FileAnalysisSample(sample);
473 let callChainList = this.dataCache.eBpfCallChainsMap.get(sample.callChainId);
646 samples.forEach((sample) => {
647 totalCount += sample.dur;
648 let callChains = this.createThreadAndType(sample);
655 …currentTreeMapData[callChains[topIndex].symbolsId + '' + callChains[topIndex].pathId + sample.pid];
658 …urrentTreeMapData[callChains[topIndex].symbolsId + '' + callChains[topIndex].pathId + sample.pid] =
662 FileMerageBean.merageCallChainSample(root, callChains[topIndex], sample, false);
663 this.merageChildrenByIndex(root, callChains, topIndex, sample, isTopDown);
[all …]
/developtools/hiperf/src/
Dsubcommand_report.cpp189 void SubCommandReport::BroadcastSample(std::unique_ptr<PerfRecordSample> &sample) in BroadcastSample() argument
194 sample->data_.id = config.ids_[0]; in BroadcastSample()
195 ProcessSample(sample); in BroadcastSample()
199 void SubCommandReport::ProcessSample(std::unique_ptr<PerfRecordSample> &sample) in ProcessSample() argument
201 sample->DumpLog(__FUNCTION__); in ProcessSample()
203 reportJsonFile_->UpdateReportSample(sample->data_.id, sample->data_.pid, sample->data_.tid, in ProcessSample()
204 sample->data_.period); in ProcessSample()
205 reportJsonFile_->UpdateReportCallStack(sample->data_.id, sample->data_.pid, in ProcessSample()
206 sample->data_.tid, sample->data_.period, in ProcessSample()
207 sample->callFrames_); in ProcessSample()
[all …]
Dreport.cpp34 void Report::AddReportItem(const PerfRecordSample &sample, bool includeCallStack) in AddReportItem() argument
36 size_t configIndex = GetConfigIndex(sample.data_.id); in AddReportItem()
39 configIndex, sample.data_.id); in AddReportItem()
40 VirtualThread &thread = virtualRuntime_.GetThread(sample.data_.pid, sample.data_.tid); in AddReportItem()
41 HLOG_ASSERT(sample.callFrames_.size() > 0); in AddReportItem()
42 if (sample.callFrames_.size() > 0) { in AddReportItem()
46 auto frameIt = sample.callFrames_.rbegin(); in AddReportItem()
48 sample.data_.pid, sample.data_.tid, thread.name_, frameIt->filePath_, in AddReportItem()
49 frameIt->symbolName_, frameIt->vaddrInFile_, sample.data_.period); in AddReportItem()
54 for (frameIt = sample.callFrames_.rbegin(); frameIt != sample.callFrames_.rend(); in AddReportItem()
[all …]
Dreport_protobuf_file.cpp122 CallStackSample *sample = record.mutable_sample(); in ProcessSampleRecord() local
123 sample->set_time(recordSample.data_.time); in ProcessSampleRecord()
124 sample->set_tid(recordSample.data_.tid); in ProcessSampleRecord()
126 auto callframe = sample->add_callstackframe(); in ProcessSampleRecord()
134 sample->set_event_count(recordSample.data_.period); in ProcessSampleRecord()
135 sample->set_config_name_id(configIndex); in ProcessSampleRecord()
384 return Dump(record.sample(), INDENT_ONE_LEVEL); in Dump()
/developtools/hiperf/test/unittest/common/native/
Dreport_protobuf_file_test.cpp295 PerfRecordSample sample(false, 1, 2, 100, 200u); variable
296 sample.callFrames_.emplace_back(0x1, 0x1234, "first_user_func", "user_symbol");
297 sample.callFrames_.emplace_back(0x2, 0x1234, "first_user2_func", "user_symbol2");
298 sample.callFrames_.emplace_back(0x3, 0x1234, "second_user2_func", "user_symbol2");
300 sample.callFrames_.at(0).symbolFileIndex_ = 0;
301 sample.callFrames_.at(1).symbolFileIndex_ = 1;
302 sample.callFrames_.at(2).symbolFileIndex_ = 1;
303 sample.callFrames_.at(0).symbolIndex_ = 0;
304 sample.callFrames_.at(1).symbolIndex_ = 0;
305 sample.callFrames_.at(2).symbolIndex_ = 1;
[all …]
Dreport_test.cpp716 PerfRecordSample sample(false, 0, 0, 1); variable
717 sample.callFrames_.emplace_back(0x1, 0x1234, "frame1", "dummy");
718 sample.callFrames_.emplace_back(0x2, 0x1234, "frame2", "dummy");
719 sample.callFrames_.emplace_back(0x3, 0x1234, "frame3", "dummy");
720 sample.callFrames_.emplace_back(0x3, 0x1234, "frame4", "dummy");
728 report_->AddReportItem(sample, false);
732 report_->AddReportItem(sample, true);
757 report_->AddReportItem(sample, false);
775 PerfRecordSampleMock sample(false, 0, 0, 1); variable
776 sample.data_.bnr = 3;
[all …]
Dvirtual_runtime_test.cpp367 PerfRecordSample sample(data.data(), attr); variable
368 sample.DumpLog("UnwindFromRecord");
369 ASSERT_EQ(sample.data_.stack_size, TEST_DWARF_RECORD_STACK_SIZE);
372 runtime_->UnwindFromRecord(sample);
373 ASSERT_LE(TEST_RECORD_CALLSTACK_IP_FUNC.size(), sample.callFrames_.size());
375 EXPECT_EQ(TEST_RECORD_CALLSTACK_IP_FUNC[i].first, sample.callFrames_[i].vaddrInFile_);
377 sample.callFrames_[i].symbolName_.data());
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/
Dperf_data_parser.cpp231 std::unique_ptr<PerfRecordSample> sample(static_cast<PerfRecordSample*>(record.release())); in RecordCallBack() local
232 auto callChainId = UpdatePerfCallChainData(sample); in RecordCallBack()
233 UpdatePerfSampleData(callChainId, sample); in RecordCallBack()
250 uint32_t PerfDataParser::UpdatePerfCallChainData(const std::unique_ptr<PerfRecordSample>& sample) in UpdatePerfCallChainData() argument
257 for (auto frame = sample->callFrames_.rbegin(); frame != sample->callFrames_.rend(); ++frame) { in UpdatePerfCallChainData()
303 …rfDataParser::UpdatePerfSampleData(uint32_t callChainId, std::unique_ptr<PerfRecordSample>& sample) in UpdatePerfSampleData() argument
308 newTimeStamp = sample->data_.time; in UpdatePerfSampleData()
311 …eamFilters_->clockFilter_->ToPrimaryTraceTime(perfToTSClockType_.at(clockId_), sample->data_.time); in UpdatePerfSampleData()
313 UpdatePluginTimeRange(perfToTSClockType_.at(clockId_), sample->data_.time, newTimeStamp); in UpdatePerfSampleData()
316 auto threadState = report_->GetConfigName(sample->data_.id); in UpdatePerfSampleData()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/
Dperf_data_parser.cpp228 std::unique_ptr<PerfRecordSample> sample(static_cast<PerfRecordSample*>(record.release())); in RecordCallBack() local
229 auto callChainId = UpdatePerfCallChainData(sample); in RecordCallBack()
230 UpdatePerfSampleData(callChainId, sample); in RecordCallBack()
247 uint32_t PerfDataParser::UpdatePerfCallChainData(const std::unique_ptr<PerfRecordSample>& sample) in UpdatePerfCallChainData() argument
254 for (auto frame = sample->callFrames_.rbegin(); frame != sample->callFrames_.rend(); ++frame) { in UpdatePerfCallChainData()
301 …rfDataParser::UpdatePerfSampleData(uint32_t callChainId, std::unique_ptr<PerfRecordSample>& sample) in UpdatePerfSampleData() argument
306 newTimeStamp = sample->data_.time; in UpdatePerfSampleData()
309 …eamFilters_->clockFilter_->ToPrimaryTraceTime(perfToTSClockType_.at(clockId_), sample->data_.time); in UpdatePerfSampleData()
311 UpdatePluginTimeRange(perfToTSClockType_.at(clockId_), sample->data_.time, newTimeStamp); in UpdatePerfSampleData()
314 auto threadState = report_->GetConfigName(sample->data_.id); in UpdatePerfSampleData()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_js_cpu_profiler_parser.cpp94 uint32_t sample = std::numeric_limits<uint32_t>::max(); in ParseJsCpuProfiler() local
98 if (sample != std::numeric_limits<uint32_t>::max() && sample != jMessage.at("samples")[i]) { in ParseJsCpuProfiler()
106 …(void)traceDataCache_->GetJsCpuProfilerSampleData()->AppendNewData(sample, startNewTime, endNewTim… in ParseJsCpuProfiler()
107 sample = jMessage.at("samples")[i]; in ParseJsCpuProfiler()
109 } else if (sample == std::numeric_limits<uint32_t>::max()) { in ParseJsCpuProfiler()
110 sample = jMessage.at("samples")[0]; in ParseJsCpuProfiler()
122 …(void)traceDataCache_->GetJsCpuProfilerSampleData()->AppendNewData(sample, startNewTime, endNewTim… in ParseJsCpuProfiler()
/developtools/ace_ets2bundle/
DREADME_zh.md45 上述命令编译了compiler目录下的`sample`工程,编译结果在`sample\build`目录。
83 **Note**: 如果`projectName`未指定,默认编译`sample`工程,编译结果在`sample\build`目录。
/developtools/ace_js2bundle/
DREADME_zh.md10 * sample: 工程样例
43 以编译`sample\rich`工程为例,进入到ace-loader目录
48 上述命令编译了ace-loader目录下的`sample\rich`工程,编译结果在`sample\rich\build`目录。
267 以`sample\rich`工程为例,例如在`sample\rich\pages`目录创建一个`bar`页面,需要在项目的`manifest.json`文件的`pages`新增一行,如下所示:
280 $ npm run rich # 编译sample\rich工程
281 $ npm run lite # 编译sample\lite工程
282 $ npm run card # 编译sample\card工程
284 **Note**: 编译结果在`sample\[rich|lite|card]\build`目录。
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/ark-ts/
DTabPaneJsCpu.ts186 sampleArray.forEach((sample) => {
187 if (sample.symbolName && sample.symbolName.toLocaleLowerCase().includes(search)) {
188sample.isSearch = sample.symbolName != undefined && sample.symbolName.toLocaleLowerCase().includes…
190 sample.isSearch = false;
193 sample.isSearch = false;
195 if (sample.children.length > 0) {
196 this.findSearchNode(sample.children, search);
/developtools/hiperf/proto/
Dreport_sample.proto18 // message Record(sample)
20 // message Record(sample)
23 // message Record(sample)
88 CallStackSample sample = 1; field
/developtools/ace_js2bundle/ace-loader/
DREADME.md9 ## Build built-in sample for Rich devices under the ace-loader dir.
13 ## Build built-in sample for Lite devices under the ace-loader dir.
/developtools/smartperf_host/ide/test/trace/database/logic-worker/
DProcedureLogicWorkerFileSystem.test.ts336 let sample = { variable
341 expect(FileMerageBean.merageCallChainSample(currentNode, callChain, sample, isEnd));
360 let sample = { variable
367 expect(handlerMap.createThreadAndType(sample)).toBeTruthy();
380 let sample = {}; variable
383 …expect(handlerMap.merageChildrenByIndex(currentNode, callChainDataList, index, sample, isTopDown))…

123