Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 189) sorted by relevance

12345678

/developtools/hiperf/test/unittest/common/native/
Dvirtual_thread_test.cpp111 VirtualThread *thread = static_cast<VirtualThread *>(data); in PhdrCallBack() local
115 EXPECT_NE(thread->GetMaps().size(), 0u); in PhdrCallBack()
127 for (auto item : thread->GetMaps()) { in PhdrCallBack()
136 for (auto item : thread->GetMaps()) { in PhdrCallBack()
157 VirtualThread thread(getpid(), files);
158 thread.ParseMap();
160 dl_iterate_phdr(PhdrCallBack, static_cast<void *>(&thread));
162 for (auto item : thread.GetMaps()) {
177 VirtualThread thread(getpid(), files);
178 thread.CreateMapItem("0.so", 1000, 2000, 3000);
[all …]
Dcpu_usage_test.cpp219 std::thread perf(system, cmd.c_str());
235 std::thread perf(system, cmd.c_str());
251 std::thread perf(system, cmd.c_str());
267 std::thread perf(system, cmd.c_str());
283 std::thread perf(system, cmd.c_str());
299 std::thread perf(system, cmd.c_str());
315 std::thread perf(system, cmd.c_str());
331 std::thread perf(system, cmd.c_str());
347 std::thread perf(system, cmd.c_str());
363 std::thread perf(system, cmd.c_str());
[all …]
/developtools/smartperf_host/ide/src/trace/database/
DConvert.ts71 let thread: ConvertThread;
73 thread = new ConvertThread(new Worker(new URL('./ConvertTraceWorker', import.meta.url)));
75 thread!.worker!.onmessage = (event: MessageEvent) => {
76 thread.busy = false;
78 if (Reflect.has(thread.taskMap, event.data.id)) {
80 let fun = thread.taskMap[event.data.id];
84 Reflect.deleteProperty(thread.taskMap, event.data.id);
86 let fun = thread.taskMap[event.data.id];
90 Reflect.deleteProperty(thread.taskMap, event.data.id);
94 thread!.worker!.onmessageerror = (e) => {};
[all …]
DProcedure.ts143 let thread: ProcedureThread = new ProcedureThread(
148 thread.name = this.logicDataHandles[this.works.length - this.names.length];
149 this.sendMessage(thread);
150 thread.worker!.onmessageerror = (e) => {};
151 thread.worker!.onerror = (e) => {};
152 thread.id = this.works.length;
153 thread.busy = false;
154 this.works?.push(thread);
155 return thread;
158 private sendMessage(thread: ProcedureThread): void {
[all …]
DSqlLite.ts187 let thread: DbThread | undefined;
189 thread = threadBuild();
192 thread = new DbThread(new Worker(new URL('./TraceWorker', import.meta.url)));
194 thread = new DbThread(new Worker(new URL('./SqlLiteWorker', import.meta.url)));
196 thread = new DbThread(new Worker(new URL('./SqlLiteWorker', import.meta.url)));
199 if (thread) {
200 this.currentWasmThread = thread;
201 thread!.worker!.onerror = (err) => {
204 thread!.worker!.onmessageerror = (err) => {
207 this.threadPostMessage(thread);
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerPerfCallchains.ts52 let thread = this.works[i];
53 thread.worker!.terminate();
60 let thread = new PerfCallChainThread(
63 thread!.worker!.onmessage = (event: MessageEvent) => {
64 thread.busy = false;
65 let fun = thread.taskMap[event.data.id];
69 Reflect.deleteProperty(thread.taskMap, event.data.id);
71 thread!.worker!.onmessageerror = (e) => {};
72 thread!.worker!.onerror = (e) => {};
73 thread!.busy = false;
[all …]
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dvirtual_thread_test.cpp96 VirtualThread *thread = static_cast<VirtualThread *>(data); in PhdrCallBack() local
100 EXPECT_NE(thread->GetMaps().size(), 0u); in PhdrCallBack()
112 for (auto item : thread->GetMaps()) { in PhdrCallBack()
121 for (const std::shared_ptr<DfxMap> &item : thread->GetMaps()) { in PhdrCallBack()
144 std::shared_ptr<VirtualThread> thread = std::make_shared<VirtualThread>(getpid(), variable
147 dl_iterate_phdr(PhdrCallBack, static_cast<void *>(thread.get()));
159 std::shared_ptr<VirtualThread> thread = std::make_shared<VirtualThread>(getpid(), GetThreadId(), variable
161 const std::vector<std::shared_ptr<DfxMap>> &maps = thread->GetMaps();
165 thread->CreateMapItem("0.so", 1000, 2000, 3000);
166 thread->CreateMapItem("1.so", 3000, 4000, 5000);
[all …]
/developtools/smartperf_host/trace_streamer/src/filter/
Dprocess_filter.cpp59 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 …]
Dcpu_filter.cpp78 auto thread = traceDataCache_->GetThreadData(prevPid); in ProcPrevPidSwitchEvent() local
79 if (thread && !thread->switchCount_) { in ProcPrevPidSwitchEvent()
80 thread->switchCount_ = 1; in ProcPrevPidSwitchEvent()
176 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessExitEvent() local
177 if (thread) { in InsertProcessExitEvent()
178 thread->endT_ = ts; in InsertProcessExitEvent()
186 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessFreeEvent() local
187 if (thread) { in InsertProcessFreeEvent()
188 thread->endT_ = ts; in InsertProcessFreeEvent()
198 auto thread = traceDataCache_->GetThreadData(i); in Finish() local
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/frequsage/
DTabPaneFreqUsageConfig.ts17 thread: string = ""; property in TabPaneFreqUsageConfig
31 thread: string,
45 this.thread = thread;
62 thread: string = ""; property in TabPaneRunningConfig
71 thread: string,
79 this.thread = thread;
/developtools/profiler/device/plugins/native_daemon/src/
Dcall_stack.cpp42 auto process = unwindInfoPtr.callStack.porcessMemoryMap_.find(unwindInfoPtr.thread.pid_); in ReadVirtualThreadMemory()
51 if (unwindInfoPtr.thread.ReadRoMemory(addr, (uint8_t *)data, sizeof(ADDR_TYPE))) { in ReadVirtualThreadMemory()
52 unwindInfoPtr.callStack.porcessMemoryMap_[unwindInfoPtr.thread.pid_][addr] = *data; in ReadVirtualThreadMemory()
93 const VirtualThread &thread) in fillUDI() argument
130 auto ehFrameMap = thread.FindMapByFileInfo(map->name, ehFrameHdrElfOffset); in fillUDI()
145 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI()
175 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
176 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
178 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
195 if (fillUDI(newdi, *symbolsFile, map, unwindInfoPtr->thread)) { in FindUnwindTable()
[all …]
/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerSPT.ts138 let thread = process.children.find((child: any) => child.title === `T-${slice.tid}`); variable
139 if (thread) {
140 thread.count += 1;
141 thread.wallDuration += slice.dur;
142 thread.minDuration = Math.min(thread.minDuration, slice.dur!);
143 thread.maxDuration = Math.max(thread.maxDuration, slice.dur!);
144 thread.avgDuration = (thread.wallDuration / thread.count).toFixed(2);
145 let state = thread.children.find((child: any) => child.title === `S-${slice.state}`);
153 thread.children.push(item);
277 let thread = process.children.find((child: any) => child.title === `T-${slice.tid}`); variable
[all …]
/developtools/smartperf_host/trace_streamer/test/unittest/filter/
Dprocess_filter_test.cpp56 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/hiperf/src/
Dcallstack.cpp48 if (__builtin_expect(unwindInfoPtr.thread.pid_ == unwindInfoPtr.callStack.lastPid_ && in ReadVirtualThreadMemory()
54 …if (unwindInfoPtr.thread.ReadRoMemory(vaddr, reinterpret_cast<uint8_t*>(data), sizeof(ADDR_TYPE)))… in ReadVirtualThreadMemory()
55 unwindInfoPtr.callStack.lastPid_ = unwindInfoPtr.thread.pid_; in ReadVirtualThreadMemory()
100 const VirtualThread &thread) in fillUDI() argument
134 auto ehFrameMap = thread.FindMapByFileInfo(map->name, ehFrameHdrElfOffset); in fillUDI()
158 auto targetMap = thread.FindMapByFileInfo(map->name, SectionFileOffset); in fillUDI()
193 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
194 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
196 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
211 if (fillUDI(newdi, *symbolsFile, map, unwindInfoPtr->thread)) { in FindUnwindTable()
[all …]
Dreport_json_file.cpp58 for (auto &thread : process.second.threads_) { in UpdateCallNodeEventCount() local
59 thread.second.callNode.UpdateChildrenEventCount(); in UpdateCallNodeEventCount()
60 thread.second.callNodeReverse.UpdateChildrenEventCount(); in UpdateCallNodeEventCount()
99 auto &thread = GetOrCreateMapItem(process.threads_, tid); in UpdateReportSample() local
100 thread.eventCount_ += eventCount; in UpdateReportSample()
101 thread.sampleCount_++; in UpdateReportSample()
200 auto &thread = GetOrCreateMapItem(process.threads_, tid); in UpdateReportCallStack() local
209 ReportLibItem &lib = thread.libs_[libId]; in UpdateReportCallStack()
243 AddReportCallStackReverse(eventCount, thread.callNode, frames); in UpdateReportCallStack()
244 AddReportCallStack(eventCount, thread.callNodeReverse, frames); in UpdateReportCallStack()
[all …]
/developtools/profiler/host/smartperf/client/client_command/include/
Dstartup_delay.h23 std::thread ThreadGetTrace(const std::string &sessionID, const std::string &traceName);
25 std::thread ThreadGetLayout();
27 std::thread ThreadInputEvent(const std::string &point);
29 std::thread ThreadGetHisysIdResponse() const;
31 std::thread ThreadGetHisysIdComplete() const;
33 std::thread ThreadGetHisysId();
/developtools/smartperf_host/ide/src/trace/component/chart/
DSpHiPerf.ts280 const thread = {
286 map.get(key).children.push(thread);
288 map.get(key).children = [thread];
294 children: [thread],
541 let thread = TraceRow.skeleton<HiPerfThreadStruct>(); variable
542 thread.rowId = `${thObj.tid}-Perf-Thread`;
543 thread.index = thIdx;
544 thread.rowType = TraceRow.ROW_TYPE_HIPERF_THREAD;
545 thread.rowParentId = row.rowId;
546 thread.rowHidden = !row.expansion;
[all …]
/developtools/smartperf_host/ide/src/trace/bean/
DAbilityMonitor.ts175 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/profiler/host/smartperf/client/client_command/
Dcontrol_call_cmd.cpp90 std::thread thGetTrace = sd.ThreadGetTrace("delay", traceName); in TimeDelay()
91 std::thread thGetHisysId = sd.ThreadGetHisysIdResponse(); in TimeDelay()
92 std::thread thGetHisysId2 = sd.ThreadGetHisysIdComplete(); in TimeDelay()
120 std::thread thGetTrace = sd.ThreadGetTrace("fps", traceName); in SlideList()
124 std::thread thGetTrace = sd.ThreadGetTrace("fps", traceName); in SlideList()
125 std::thread thGetHisysId = sd.ThreadGetHisysId(); in SlideList()
146 std::thread thGetTrace = sd.ThreadGetTrace("frame", traceName); in GetFrame()
147 std::thread thGetHisysId = sd.ThreadGetHisysId(); in GetFrame()
161 std::thread thGetTrace = sd.ThreadGetTrace("fps", traceName); in PageFps()
176 std::thread thGetTrace = sd.ThreadGetTrace("fps", traceName); in SlideFps()
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/base/
DColorUtils.test.ts30 let thread = { processId: 1 }; variable
31 expect(ColorUtils.colorForThread(thread)).toEqual('#7a9160');
36 let thread = { variable
40 expect(ColorUtils.colorForThread(thread)).toEqual('#7a9160');
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/cpu/
DTabPaneSPT.test.ts47 thread: 'hdcd',
60 thread: 'foundation',
73 thread: '',
93 thread: 'com.ohos.callui',
113 thread: 'com.ohos.callui',
134 thread: 'com.ohos.callui',
DTabPanePTS.test.ts36 thread: 'hiperf',
49 thread: 'download_server',
62 thread: 'CellularDataSer',
82 thread: 'hiprofiler_cmd 2452',
103 thread: 'CellularDataSer',
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/vmtracker/
DTabPaneGpuMemoryVmTrackerComparison.ts58 item.thread = `${item.threadName}(${item.threadId})`;
60 item.thread = `Thread(${item.threadId})`;
74 this.selfData.push(new GpuMemoryComparison('', item.thread, item.gpuName, item.value));
116 comparison.push(new GpuMemoryComparison('', item.thread, item.gpuName, item.value));
138 … ? `${gpuMComparisonLeftData.thread}`.localeCompare(`${gpuMComparisonRightData.thread}`)
139 … : `${gpuMComparisonRightData.thread}`.localeCompare(`${gpuMComparisonLeftData.thread}`);
DTabPaneGpuMemorySelectVmTracker.ts71 item.thread = `${item.threadName}(${item.threadId})`;
73 item.thread = `Thread(${item.threadId})`;
149 ? `${gpuMemoryLeftData.thread}`.localeCompare(`${gpuMemoryRightData.thread}`)
150 : `${gpuMemoryRightData.thread}`.localeCompare(`${gpuMemoryLeftData.thread}`);
/developtools/smartperf_host/trace_streamer/src/table/ftrace/
Dthread_table.cpp301 const auto& thread = dataCache_->GetConstThreadData(CurrentRow()); in Column() local
313 SetTypeColumnInt64(thread.tid_, INVALID_UINT32); in Column()
317 SetNameColumn(thread); in Column()
321 SetTypeColumnInt64NotZero(thread.startT_); in Column()
324 SetTypeColumnInt64NotZero(thread.endT_); in Column()
328 SetTypeColumnInt32(thread.internalPid_, INVALID_UINT32); in Column()
332 if (thread.internalPid_ == INVALID_UINT32) { in Column()
335 const auto& process = dataCache_->GetConstProcessData(thread.internalPid_); in Column()
336 sqlite3_result_int(context_, thread.tid_ == process.pid_); in Column()
341 sqlite3_result_int(context_, thread.switchCount_); in Column()
[all …]

12345678