Home
last modified time | relevance | path

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

12345678

/developtools/profiler/host/smartperf/ide/src/trace/database/
DProcedure.ts97 …let thread: ProcedureThread = new ProcedureThread("trace/database/ui-worker/ProcedureWorker.js", {…
98 thread.name = this.names[this.works.length]
99 thread.onmessage = (event: MessageEvent) => {
100 thread.busy = false;
103 thread.busy = false;
106 if (Reflect.has(thread.taskMap, event.data.id)) {
108 let fun = thread.taskMap[event.data.id];
112 Reflect.deleteProperty(thread.taskMap, event.data.id)
119 thread.onmessageerror = e => {
121 thread.onerror = e => {
[all …]
DProcedureWorkerPerfCallchains.ts46 let thread = this.works[i];
47 thread.terminate();
54 …let thread = new PerfCallChainThread("trace/component/hiperf/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 => {
65 thread!.onerror = e => {
67 thread!.busy = false;
[all …]
/developtools/hiperf/test/unittest/common/native/
Dvirtual_thread_test.cpp185 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 …]
/developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/
DProcedureWorkerPerfCallchains.ts46 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 => {
65 thread!.onerror = e => {
67 thread!.busy = false;
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/filter/
Dcpu_filter.cpp63 auto thread = traceDataCache_->GetThreadData(prevPid); in InsertSwitchEvent() local
64 if (thread){ in InsertSwitchEvent()
65 thread->switchCount_ = 1; in InsertSwitchEvent()
76 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessExitEvent() local
77 if (thread) { in InsertProcessExitEvent()
78 thread->endT_ = ts; in InsertProcessExitEvent()
86 auto thread = traceDataCache_->GetThreadData(static_cast<InternalTid>(pid)); in InsertProcessFreeEvent() local
87 if (thread) { in InsertProcessFreeEvent()
88 thread->endT_ = ts; in InsertProcessFreeEvent()
98 auto thread = traceDataCache_->GetThreadData(i); in Finish() local
[all …]
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 …]
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dvirtual_thread_test.cpp172 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(), get_thread_id(), variable
243 const std::vector<MemMapItem> &maps = thread->GetMaps();
247 thread->CreateMapItem("0.so", 1000, 2000, 3000);
[all …]
/developtools/profiler/host/smartperf/trace_streamer/test/unittest/
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/profiler/device/plugins/native_daemon/src/
Dcall_stack.cpp72 const VirtualThread &thread) in fillUDI() argument
109 const MemMapItem *ehFrameMmap = thread.FindMapByFileInfo(mmap.name_, ehFrameHdrElfOffset); in fillUDI()
129 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI()
162 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
163 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
165 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
180 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable()
186 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
190 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable()
218 HLOGW("no debug info found for thread %d:%s", unwindInfoPtr->thread.tid_, in FindUnwindTable()
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/chart/
DSpHiPerf.ts458 let thread = new TraceRow({ variable
464 thread.rowId = `${thObj.tid}-Perf-Thread`;
465 thread.index = thIdx;
466 thread.rowType = TraceRow.ROW_TYPE_HIPERF_THREAD
467 thread.rowParentId = row.rowId;
468 thread.rowHidden = !row.expansion
469 thread.folder = false;
470 thread.name = `${thObj.threadName||'Thread'} [${thObj.tid}]`;
471 thread.setAttribute('children', '')
472 thread.folderPaddingLeft = 30;
[all …]
/developtools/profiler/host/smartperf/ide/test/trace/component/trace/sheet/cpu/
DTabPaneSPT.test.ts45 thread: "",
57 thread: "",
69 thread: "",
87 thread: "",
105 thread: "",
125 thread: "",
144 thread: "thread",
DTabPanePTS.test.ts44 thread: "",
56 thread: "",
68 thread: "",
86 thread: "",
106 thread: "",
125 thread: "thread",
/developtools/profiler/host/smartperf/ide/src/trace/component/hiperf/
DSpHiPerf.ts457 let thread = new TraceRow({ variable
463 thread.rowId = `${thObj.tid}-Perf-Thread`;
464 thread.index = thIdx;
465 thread.rowType = TraceRow.ROW_TYPE_HIPERF_THREAD
466 thread.rowParentId = row.rowId;
467 thread.rowHidden = !row.expansion
468 thread.folder = false;
469 thread.name = `${thObj.threadName||'Thread'} [${thObj.tid}]`;
470 thread.setAttribute('children', '')
471 thread.folderPaddingLeft = 30;
[all …]
/developtools/profiler/host/smartperf/ide/test/trace/component/trace/base/
DColorUtils.test.ts32 let thread = {processId:1} variable
33 expect(ColorUtils.colorForThread(thread)).toEqual("#7AD7E6");
38 let thread = { variable
42 expect(ColorUtils.colorForThread(thread)).toEqual("#7AD7E6");
/developtools/hiperf/src/
Dcallstack.cpp72 const VirtualThread &thread) in fillUDI() argument
106 const MemMapItem *ehFrameMmap = thread.FindMapByFileInfo(mmap.name_, ehFrameHdrElfOffset); in fillUDI()
131 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI()
166 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
167 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
169 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
184 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable()
195 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
199 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable()
227 HLOGW("no debug info found for thread %d:%s", unwindInfoPtr->thread.tid_, in FindUnwindTable()
[all …]
Dreport_json_file.cpp57 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 …]
Dvirtual_runtime.cpp54 VirtualThread &thread = GetThread(pid, tid); in UpdateThread() local
56 thread.name_ = name; in UpdateThread()
61 return thread; in UpdateThread()
76 VirtualThread &thread = userSpaceThreadMap_.at(tid); in CreateThread() local
82 thread.ParseMap(); in CreateThread()
90 thread.name_ = ReadThreadName(pid); in CreateThread()
92 thread.name_.c_str(), thread.GetMaps().size()); in CreateThread()
94 auto commRecord = std::make_unique<PerfRecordComm>(false, pid, tid, thread.name_); in CreateThread()
98 for (auto &memMapItem : thread.GetMaps()) { in CreateThread()
100 std::make_unique<PerfRecordMmap2>(false, thread.pid_, thread.tid_, memMapItem); in CreateThread()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/
Dcallstack.cpp75 const VirtualThread &thread) in fillUDI() argument
107 const MemMapItem *ehFrameMmap = thread.FindMapByFileInfo(mmap.name_, ehFrameHdrElfOffset); in fillUDI()
130 const MemMapItem *targetMmap = thread.FindMapByFileInfo(mmap.name_, SectionFileOffset); in fillUDI()
165 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
166 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
168 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
183 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable()
194 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
198 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable()
226 HLOGW("no debug info found for thread %d:%s", unwindInfoPtr->thread.tid_, in FindUnwindTable()
[all …]
Dvirtual_runtime.cpp54 VirtualThread &thread = GetThread(pid, tid); in UpdateThread() local
56 thread.name_ = name; in UpdateThread()
61 return thread; in UpdateThread()
76 VirtualThread &thread = userSpaceThreadMap_.at(tid); in CreateThread() local
82 thread.ParseMap(); in CreateThread()
90 thread.name_ = ReadThreadName(pid); in CreateThread()
92 thread.name_.c_str(), thread.GetMaps().size()); in CreateThread()
94 auto commRecord = std::make_unique<PerfRecordComm>(false, pid, tid, thread.name_); in CreateThread()
98 for (auto &memMapItem : thread.GetMaps()) { in CreateThread()
100 std::make_unique<PerfRecordMmap2>(false, thread.pid_, thread.tid_, memMapItem); in CreateThread()
[all …]
/developtools/profiler/host/smartperf/doc/
Ddes_tables.md9 * 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/profiler/host/smartperf/ide/test/trace/bean/
DStateProcessThread.test.ts29 thread: "thread",
46 thread: expect.any(String),
79 thread: "thread",
97 thread: expect.any(String),
134 thread: "thread",
148 thread: expect.any(String),
210 thread: "thread",
218 thread: expect.any(String),
/developtools/profiler/host/smartperf/ide/src/trace/bean/
DStateProcessThread.ts23 thread: string = "" property in StateProcessThread
38 thread: string = "" property in SPTChild
55 thread: string = "" property in SPT
79 thread :string = "" property in ThreadProcess
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/base/
DColorUtils.ts71 public static colorForThread(thread: CpuStruct): string {
72 if (thread == null) {
75 …let tid: number | undefined | null = (thread.processId || -1) >= 0 ? thread.processId : thread.tid;
/developtools/profiler/host/smartperf/ide/test/trace/component/trace/sheet/
DTabPaneSPT.test.ts34 thread: "",
46 thread: "",
58 thread: "",
76 thread: "",
94 thread: "",
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/
DTabPaneContextSwitch.ts105 … obj2.title = (d.thread == null || d.thread == "" ? "Thread" : d.thread) + "(" + d.threadId + ")"
108 obj2.thread = d.thread;
135 obj3.thread = d.thread;
188 …spt.title = (spt.thread == null || spt.thread == "" ? "Thread" : spt.thread) + "(" + spt.threadId …
193 for (let thread of threads!) {
194 let states = map!.get(thread.threadId);
200 thread.children = states ?? [];

12345678