| /developtools/hiperf/test/unittest/common/native/ |
| D | virtual_thread_test.cpp | 185 VirtualThread *thread = static_cast<VirtualThread *>(data); in PhdrCallBack() local 189 EXPECT_NE(thread->GetMaps().size(), 0u); in PhdrCallBack() 201 for (const MemMapItem &item : thread->GetMaps()) { in PhdrCallBack() 210 for (const MemMapItem &item : thread->GetMaps()) { in PhdrCallBack() 231 VirtualThread thread(getpid(), files); 232 thread.ParseMap(); 234 dl_iterate_phdr(PhdrCallBack, static_cast<void *>(&thread)); 236 for (const MemMapItem &item : thread.GetMaps()) { 251 VirtualThread thread(getpid(), files); 252 thread.CreateMapItem("0.so", 1000, 2000, 3000); [all …]
|
| D | cpu_usage_test.cpp | 221 std::thread perf(system, cmd.c_str()); 237 std::thread perf(system, cmd.c_str()); 253 std::thread perf(system, cmd.c_str()); 269 std::thread perf(system, cmd.c_str()); 285 std::thread perf(system, cmd.c_str()); 301 std::thread perf(system, cmd.c_str()); 317 std::thread perf(system, cmd.c_str()); 333 std::thread perf(system, cmd.c_str()); 349 std::thread perf(system, cmd.c_str()); 365 std::thread perf(system, cmd.c_str()); [all …]
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerPerfCallchains.ts | 46 let thread = this.works[i]; 47 thread.terminate(); 54 …let thread = new PerfCallChainThread('trace/component/chart/PerfDataQuery.js', { type: 'module' })… 55 thread!.onmessage = (event: MessageEvent) => { 56 thread.busy = false; 57 let fun = thread.taskMap[event.data.id]; 61 Reflect.deleteProperty(thread.taskMap, event.data.id); 63 thread!.onmessageerror = (e) => {}; 64 thread!.onerror = (e) => {}; 65 thread!.busy = false; [all …]
|
| /developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerPerfCallchains.ts | 46 let thread = this.works[i]; 47 thread.terminate(); 54 …let thread = new PerfCallChainThread('trace/component/chart/PerfDataQuery.js', { type: 'module' })… 55 thread!.onmessage = (event: MessageEvent) => { 56 thread.busy = false; 57 let fun = thread.taskMap[event.data.id]; 61 Reflect.deleteProperty(thread.taskMap, event.data.id); 63 thread!.onmessageerror = (e) => {}; 64 thread!.onerror = (e) => {}; 65 thread!.busy = false; [all …]
|
| /developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
| D | virtual_thread_test.cpp | 172 VirtualThread *thread = static_cast<VirtualThread *>(data); in PhdrCallBack() local 176 EXPECT_NE(thread->GetMaps().size(), 0u); in PhdrCallBack() 188 for (const MemMapItem &item : thread->GetMaps()) { in PhdrCallBack() 197 for (const MemMapItem &item : thread->GetMaps()) { in PhdrCallBack() 220 std::shared_ptr<VirtualThread> thread = std::make_shared<VirtualThread>(getpid(), variable 223 dl_iterate_phdr(PhdrCallBack, static_cast<void *>(thread.get())); 225 for (const MemMapItem &item : thread->GetMaps()) { 241 std::shared_ptr<VirtualThread> thread = std::make_shared<VirtualThread>(getpid(), GetThreadId(), variable 243 const std::vector<MemMapItem> &maps = thread->GetMaps(); 247 thread->CreateMapItem("0.so", 1000, 2000, 3000); [all …]
|
| /developtools/profiler/host/smartperf/ide/src/trace/database/ |
| D | Procedure.ts | 138 …let thread: ProcedureThread = new ProcedureThread('trace/database/logic-worker/ProcedureLogicWorke… 141 thread.name = this.logicDataHandles[this.works.length - this.names.length]; 142 thread.onmessage = (event: MessageEvent) => { 143 thread.busy = false; 146 thread.postMessage({ 157 if (Reflect.has(thread.taskMap, event.data.id)) { 159 let fun = thread.taskMap[event.data.id]; 167 if (Reflect.has(thread.taskMap, event.data.id)) { 169 let fun = thread.taskMap[event.data.id]; 173 Reflect.deleteProperty(thread.taskMap, event.data.id); [all …]
|
| /developtools/smartperf_host/ide/src/trace/database/ |
| D | Procedure.ts | 138 …let thread: ProcedureThread = new ProcedureThread('trace/database/logic-worker/ProcedureLogicWorke… 141 thread.name = this.logicDataHandles[this.works.length - this.names.length]; 142 thread.onmessage = (event: MessageEvent) => { 143 thread.busy = false; 146 thread.postMessage({ 157 if (Reflect.has(thread.taskMap, event.data.id)) { 159 let fun = thread.taskMap[event.data.id]; 167 if (Reflect.has(thread.taskMap, event.data.id)) { 169 let fun = thread.taskMap[event.data.id]; 173 Reflect.deleteProperty(thread.taskMap, event.data.id); [all …]
|
| /developtools/smartperf_host/trace_streamer/src/filter/ |
| D | cpu_filter.cpp | 79 auto thread = traceDataCache_->GetThreadData(prevPid); in InsertSwitchEvent() local 80 if (thread && !thread->switchCount_) { in InsertSwitchEvent() 81 thread->switchCount_ = 1; in InsertSwitchEvent() 137 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessExitEvent() local 138 if (thread) { in InsertProcessExitEvent() 139 thread->endT_ = ts; in InsertProcessExitEvent() 147 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessFreeEvent() local 148 if (thread) { in InsertProcessFreeEvent() 149 thread->endT_ = ts; in InsertProcessFreeEvent() 159 auto thread = traceDataCache_->GetThreadData(i); in Finish() local [all …]
|
| D | process_filter.cpp | 59 auto thread = traceDataCache_->GetThreadData(itid); in AddCpuStateCount() local 60 if (thread) { in AddCpuStateCount() 61 thread->cpuStatesCount_++; in AddCpuStateCount() 71 auto thread = traceDataCache_->GetThreadData(internalTid); in UpdateOrCreateThreadWithPidAndName() local 73 thread->nameIndex_ = nameIndex; in UpdateOrCreateThreadWithPidAndName() 83 TraceStdtype::Thread* thread = nullptr; in GetOrCreateThreadWithPid() local 91 thread = traceDataCache_->GetThreadData(internalTid); in GetOrCreateThreadWithPid() 93 std::tie(internalTid, thread) = NewThread(tid); in GetOrCreateThreadWithPid() 96 if (thread->internalPid_ == INVALID_UINT32 && pid != 0) { in GetOrCreateThreadWithPid() 97 std::tie(thread->internalPid_, std::ignore) = CreateProcessMaybe(pid, thread->startT_); in GetOrCreateThreadWithPid() [all …]
|
| /developtools/profiler/host/smartperf/trace_streamer/src/filter/ |
| D | cpu_filter.cpp | 79 auto thread = traceDataCache_->GetThreadData(prevPid); in InsertSwitchEvent() local 80 if (thread && !thread->switchCount_) { in InsertSwitchEvent() 81 thread->switchCount_ = 1; in InsertSwitchEvent() 137 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessExitEvent() local 138 if (thread) { in InsertProcessExitEvent() 139 thread->endT_ = ts; in InsertProcessExitEvent() 147 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessFreeEvent() local 148 if (thread) { in InsertProcessFreeEvent() 149 thread->endT_ = ts; in InsertProcessFreeEvent() 159 auto thread = traceDataCache_->GetThreadData(i); in Finish() local [all …]
|
| D | process_filter.cpp | 59 auto thread = traceDataCache_->GetThreadData(itid); in AddCpuStateCount() local 60 if (thread) { in AddCpuStateCount() 61 thread->cpuStatesCount_++; in AddCpuStateCount() 71 auto thread = traceDataCache_->GetThreadData(internalTid); in UpdateOrCreateThreadWithPidAndName() local 73 thread->nameIndex_ = nameIndex; in UpdateOrCreateThreadWithPidAndName() 83 TraceStdtype::Thread* thread = nullptr; in GetOrCreateThreadWithPid() local 91 thread = traceDataCache_->GetThreadData(internalTid); in GetOrCreateThreadWithPid() 93 std::tie(internalTid, thread) = NewThread(tid); in GetOrCreateThreadWithPid() 96 if (thread->internalPid_ == INVALID_UINT32 && pid != 0) { in GetOrCreateThreadWithPid() 97 std::tie(thread->internalPid_, std::ignore) = CreateProcessMaybe(pid, thread->startT_); in GetOrCreateThreadWithPid() [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/chart/ |
| D | SpHiPerf.ts | 268 let thread = TraceRow.skeleton<HiPerfThreadStruct>(); variable 269 thread.rowId = `${thObj.tid}-Perf-Thread`; 270 thread.index = thIdx; 271 thread.rowType = TraceRow.ROW_TYPE_HIPERF_THREAD; 272 thread.rowParentId = row.rowId; 273 thread.rowHidden = !row.expansion; 274 thread.folder = false; 275 thread.name = `${thObj.threadName || 'Thread'} [${thObj.tid}]`; 276 thread.setAttribute('children', ''); 277 thread.folderPaddingLeft = 0; [all …]
|
| /developtools/smartperf_host/trace_streamer/test/unittest/ |
| D | process_filter_test.cpp | 56 Thread* thread = traceDataCache_.GetThreadData(iTid0); variable 57 EXPECT_TRUE(thread->tid_ == tid0); 59 thread = traceDataCache_.GetThreadData(iTid1); 60 EXPECT_TRUE(thread->tid_ == tid1); 186 Thread* thread = traceDataCache_.GetThreadData(iTid0); variable 187 EXPECT_TRUE(thread->tid_ == tid); 188 EXPECT_TRUE(thread->nameIndex_ == traceDataCache_.GetDataIndex(threadName)); 190 thread = traceDataCache_.GetThreadData(iTid1); 191 EXPECT_TRUE(thread->tid_ == tid2); 192 EXPECT_TRUE(thread->nameIndex_ == traceDataCache_.GetDataIndex(threadName2)); [all …]
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | call_stack.cpp | 72 const VirtualThread &thread) in fillUDI() argument 109 const MemMapItem *ehFrameMmap = thread.FindMapByFileInfo(mmap.name_, ehFrameHdrElfOffset); in fillUDI() 126 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI() 156 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable() 157 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable() 159 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable() 176 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable() 182 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable() 186 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable() 214 HLOGW("no debug info found for thread %d:%s", unwindInfoPtr->thread.tid_, in FindUnwindTable() [all …]
|
| /developtools/profiler/host/smartperf/ide/src/trace/component/chart/ |
| D | SpHiPerf.ts | 339 let thread = TraceRow.skeleton<HiPerfThreadStruct>(); variable 340 thread.rowId = `${thObj.tid}-Perf-Thread`; 341 thread.index = thIdx; 342 thread.rowType = TraceRow.ROW_TYPE_HIPERF_THREAD; 343 thread.rowParentId = row.rowId; 344 thread.rowHidden = !row.expansion; 345 thread.folder = false; 346 thread.name = `${thObj.threadName || 'Thread'} [${thObj.tid}]`; 347 thread.setAttribute('children', ''); 348 thread.folderPaddingLeft = 0; [all …]
|
| /developtools/smartperf_host/ide/src/trace/bean/ |
| D | AbilityMonitor.ts | 175 thread: string = ''; //threadName + threadI property in GpuMemory 190 thread: string = ''; property in DmaComparison 212 thread: string = ''; property in GpuMemoryComparison 214 constructor(process: string, thread: string, gpuName: string, value: number) { 215 super(process + '' + thread + '' + gpuName, value); 218 this.thread = thread; 223 return new GpuMemoryComparison(this.process, this.thread, this.gpuName, value);
|
| /developtools/hiperf/src/ |
| D | callstack.cpp | 73 const VirtualThread &thread) in fillUDI() argument 107 const MemMapItem *ehFrameMmap = thread.FindMapByFileInfo(mmap.name_, ehFrameHdrElfOffset); in fillUDI() 132 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI() 167 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable() 168 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable() 170 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable() 185 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable() 196 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable() 200 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable() 228 HLOGW("no debug info found for thread %d:%s", unwindInfoPtr->thread.tid_, in FindUnwindTable() [all …]
|
| D | report_json_file.cpp | 57 for (auto &thread : process.second.threads_) { in UpdateCallNodeEventCount() local 58 thread.second.callNode.UpdateChildrenEventCount(); in UpdateCallNodeEventCount() 59 thread.second.callNodeReverse.UpdateChildrenEventCount(); in UpdateCallNodeEventCount() 98 auto &thread = GetOrCreateMapItem(process.threads_, tid); in UpdateReportSample() local 99 thread.eventCount_ += eventCount; in UpdateReportSample() 100 thread.sampleCount_++; in UpdateReportSample() 199 auto &thread = GetOrCreateMapItem(process.threads_, tid); in UpdateReportCallStack() local 208 ReportLibItem &lib = thread.libs_[libId]; in UpdateReportCallStack() 242 AddReportCallStackReverse(eventCount, thread.callNode, frames); in UpdateReportCallStack() 243 AddReportCallStack(eventCount, thread.callNodeReverse, frames); in UpdateReportCallStack() [all …]
|
| /developtools/smartperf_host/ide/test/trace/component/trace/sheet/cpu/ |
| D | TabPaneSPT.test.ts | 51 thread: 'hdcd', 64 thread: 'foundation', 77 thread: '', 97 thread: 'com.ohos.callui', 117 thread: 'com.ohos.callui', 138 thread: 'com.ohos.callui', 158 thread: 'thread',
|
| D | TabPanePTS.test.ts | 52 thread: 'hiperf', 65 thread: 'download_server', 78 thread: 'CellularDataSer', 98 thread: 'hiprofiler_cmd 2452', 119 thread: 'CellularDataSer', 139 thread: 'thread',
|
| /developtools/smartperf_host/ide/test/trace/component/trace/base/ |
| D | ColorUtils.test.ts | 31 let thread = { processId: 1 }; variable 32 expect(ColorUtils.colorForThread(thread)).toEqual('#9785D3'); 37 let thread = { variable 41 expect(ColorUtils.colorForThread(thread)).toEqual('#9785D3');
|
| /developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/ |
| D | TabPaneCpuByThread.ts | 70 let thread = map.get(`${e.tid}`)!; 71 thread.wallDuration += e.wallDuration; 72 thread.occurrences += e.occurrences; 73 thread[`cpu${e.cpu}`] = e.wallDuration || 0; 74 thread[`cpu${e.cpu}TimeStr`] = getProbablyTime(e.wallDuration || 0); 75 thread[`cpu${e.cpu}Ratio`] = ( 81 let thread = Utils.THREAD_MAP.get(e.tid); 85 thread: thread == null || thread.length == 0 ? '[NULL]' : thread,
|
| /developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/cpu/ |
| D | TabPaneCpuByThread.ts | 70 let thread = map.get(`${e.tid}`)!; 71 thread.wallDuration += e.wallDuration; 72 thread.occurrences += e.occurrences; 73 thread[`cpu${e.cpu}`] = e.wallDuration || 0; 74 thread[`cpu${e.cpu}TimeStr`] = getProbablyTime(e.wallDuration || 0); 75 thread[`cpu${e.cpu}Ratio`] = ( 81 let thread = Utils.THREAD_MAP.get(e.tid); 85 thread: thread == null || thread.length == 0 ? '[NULL]' : thread,
|
| /developtools/profiler/host/smartperf/doc/ |
| D | des_tables.md | 9 * thread : 记录线程信息。 38 Process和Thread表中的id字段可以唯一标识进程和线程。process表中的id在其他表中用作ipid字段。thread表中的id在其他表中用作itid字段。 39 thread表通过ipid字段关联process表的id字段,可以查询线程归属进程。 42 select thread.* from thread, process where process.pid = 123 and thread.ipid = process.id 47 thread_state表记录所有线程的运行状态信息,包含ts(状态起始时间),dur(状态持续时间),cpu, itid, state(线程状态)。 thread表的id字段与thread_sta… 50 select thread_state.* from thread, thread_state where thread.tid = 123 and thread.id = thread_state… 55 heap表记录堆内存申请(AllocEvent)和释放(FreeEvent)数据。heap表通过ipid和itid字段分别与process和thread表的id字段关联,通过eventId与heap… 63 select heap.* from thread, heap where thread.tid = 123 and thread.id = heap.itid 99 ### thread表
|
| /developtools/smartperf_host/ide/test/trace/bean/ |
| D | StateProcessThread.test.ts | 32 thread: 'thread', 50 thread: expect.any(String), 83 thread: 'thread', 102 thread: expect.any(String), 140 thread: 'thread', 155 thread: expect.any(String),
|