/developtools/hiperf/test/unittest/common/native/ |
D | cpu_usage_test.cpp | 32 int GetVmRSSLine(pid_t pid); 38 unsigned long GetCpuProcUsage(int pid); 40 float GetCpuUsageRatio(int pid); 42 float GetAverageCpuUsage(pid_t pid, uint64_t timeOut); 57 pid_t pid = -1; in GetPidByProcessName() local 61 pid = atoi(buf); in GetPidByProcessName() 67 return pid; in GetPidByProcessName() 70 int CpuUsageTest::GetVmRSSLine(pid_t pid) in GetVmRSSLine() argument 73 std::string fileName = "/proc" + std::to_string(pid) + "/stat"; in GetVmRSSLine() 137 unsigned long CpuUsageTest::GetCpuProcUsage(int pid) in GetCpuProcUsage() argument [all …]
|
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/hiperf/ |
D | TabPanePerfAnalysis.test.ts | 76 pid: '', 81 pid: 28917, 88 pid: 388, 95 pid: 233, 102 pid: 374, 129 pid: 1, 134 pid: 287501, 141 pid: 13621, 174 pid: 2, 179 pid: 287502, [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/filter/ |
D | process_filter.cpp | 68 uint32_t ProcessFilter::UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_… in UpdateOrCreateThreadWithPidAndName() argument 70 uint32_t internalTid = GetOrCreateThreadWithPid(tid, pid); in UpdateOrCreateThreadWithPidAndName() 75 if (tid == pid) { in UpdateOrCreateThreadWithPidAndName() 76 UpdateOrCreateProcessWithName(pid, name); in UpdateOrCreateThreadWithPidAndName() 81 uint32_t ProcessFilter::GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid) in GetOrCreateThreadWithPid() argument 85 if (pid == 0) { in GetOrCreateThreadWithPid() 88 internalTid = GetInternalTid(tid, pid); 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() 103 uint32_t ProcessFilter::UpdateOrCreateProcessWithName(uint32_t pid, std::string_view name) in UpdateOrCreateProcessWithName() argument [all …]
|
D | binder_filter.cpp | 108 void BinderFilter::ReceiveTraction(int64_t ts, uint32_t pid, uint64_t transactionId) in ReceiveTraction() argument 110 InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(ts, pid); in ReceiveTraction() 113 (void)streamFilters_->sliceFilter_->EndBinder(ts, pid); in ReceiveTraction() 120 …auto replySliceid = streamFilters_->sliceFilter_->BeginBinder(ts, pid, binderCatalogId_, replyId_); in ReceiveTraction() 121 transReplyFilter_[pid] = transNeedReply_[transactionId]; in ReceiveTraction() 124 args.AppendArg(destThreadId_, BASE_DATA_TYPE_INT, pid); in ReceiveTraction() 141 … streamFilters_->sliceFilter_->AddArgs(pid, binderCatalogId_, replyId_, replyDestInserter); in ReceiveTraction() 150 … (void)streamFilters_->sliceFilter_->AsyncBinder(ts, pid, binderCatalogId_, asyncRcvId_, args); in ReceiveTraction() 156 void BinderFilter::TransactionAllocBuf(int64_t ts, uint32_t pid, uint64_t dataSize, uint64_t offset… in TransactionAllocBuf() argument 161 (void)streamFilters_->sliceFilter_->AddArgs(pid, binderCatalogId_, transSliceId_, args); in TransactionAllocBuf() [all …]
|
D | process_filter.h | 32 uint32_t UpdateOrCreateProcessWithName(uint32_t pid, std::string_view name); 34 uint32_t UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_view name); 35 uint32_t GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid); 37 InternalPid GetInternalPid(uint32_t pid) const; 38 InternalPid GetOrCreateInternalPid(uint64_t timeStamp, uint32_t pid); 50 std::tuple<uint32_t, TraceStdtype::Process*> CreateProcessMaybe(uint32_t pid, uint64_t startT); 52 std::tuple<uint32_t, TraceStdtype::Process*> NewProcess(uint32_t pid); 54 InternalTid GetInternalTid(uint32_t tid, uint32_t pid) const;
|
/developtools/smartperf_host/trace_streamer/src/filter/ |
D | process_filter.cpp | 68 uint32_t ProcessFilter::UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_… in UpdateOrCreateThreadWithPidAndName() argument 70 uint32_t internalTid = GetOrCreateThreadWithPid(tid, pid); in UpdateOrCreateThreadWithPidAndName() 75 if (tid == pid) { in UpdateOrCreateThreadWithPidAndName() 76 UpdateOrCreateProcessWithName(pid, name); in UpdateOrCreateThreadWithPidAndName() 81 uint32_t ProcessFilter::GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid) in GetOrCreateThreadWithPid() argument 85 if (pid == 0) { in GetOrCreateThreadWithPid() 88 internalTid = GetInternalTid(tid, pid); 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() 103 uint32_t ProcessFilter::UpdateOrCreateProcessWithName(uint32_t pid, std::string_view name) in UpdateOrCreateProcessWithName() argument [all …]
|
D | binder_filter.cpp | 108 void BinderFilter::ReceiveTraction(int64_t ts, uint32_t pid, uint64_t transactionId) in ReceiveTraction() argument 110 InternalTid internalTid = streamFilters_->processFilter_->UpdateOrCreateThread(ts, pid); in ReceiveTraction() 113 (void)streamFilters_->sliceFilter_->EndBinder(ts, pid); in ReceiveTraction() 120 …auto replySliceid = streamFilters_->sliceFilter_->BeginBinder(ts, pid, binderCatalogId_, replyId_); in ReceiveTraction() 121 transReplyFilter_[pid] = transNeedReply_[transactionId]; in ReceiveTraction() 124 args.AppendArg(destThreadId_, BASE_DATA_TYPE_INT, pid); in ReceiveTraction() 141 … streamFilters_->sliceFilter_->AddArgs(pid, binderCatalogId_, replyId_, replyDestInserter); in ReceiveTraction() 150 … (void)streamFilters_->sliceFilter_->AsyncBinder(ts, pid, binderCatalogId_, asyncRcvId_, args); in ReceiveTraction() 156 void BinderFilter::TransactionAllocBuf(int64_t ts, uint32_t pid, uint64_t dataSize, uint64_t offset… in TransactionAllocBuf() argument 161 (void)streamFilters_->sliceFilter_->AddArgs(pid, binderCatalogId_, transSliceId_, args); in TransactionAllocBuf() [all …]
|
D | process_filter.h | 32 uint32_t UpdateOrCreateProcessWithName(uint32_t pid, std::string_view name); 34 uint32_t UpdateOrCreateThreadWithPidAndName(uint32_t tid, uint32_t pid, std::string_view name); 35 uint32_t GetOrCreateThreadWithPid(uint32_t tid, uint32_t pid); 37 InternalPid GetInternalPid(uint32_t pid) const; 38 InternalPid GetOrCreateInternalPid(uint64_t timeStamp, uint32_t pid); 50 std::tuple<uint32_t, TraceStdtype::Process*> CreateProcessMaybe(uint32_t pid, uint64_t startT); 52 std::tuple<uint32_t, TraceStdtype::Process*> NewProcess(uint32_t pid); 54 InternalTid GetInternalTid(uint32_t tid, uint32_t pid) const;
|
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_base.cpp | 45 void EbpfBase::ParseCallStackData(const uint64_t* userIpsAddr, uint16_t count, uint32_t pid, uint32… in ParseCallStackData() argument 50 auto symbolAndFilePathIndex = GetSymbolAndFilePathIndex(pid, userIpsAddr[i]); in ParseCallStackData() 59 callIdToPid_.insert(std::make_pair(callId, pid)); in ParseCallStackData() 62 SymbolAndFilePathIndex EbpfBase::GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip) in GetSymbolAndFilePathIndex() argument 64 auto value = pidAndIpToSymbolAndFilePathIndex_.Find(pid, ip); in GetSymbolAndFilePathIndex() 68 return GetSymbolNameIndexFromElfSym(pid, ip); in GetSymbolAndFilePathIndex() 106 void EbpfBase::UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip) in UpdateFilePathIndexToPidAndIpMap() argument 110 itor->second->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 113 pidAndIpSet->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 118 SymbolAndFilePathIndex EbpfBase::GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip) in GetSymbolNameIndexFromElfSym() argument [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_base.cpp | 45 void EbpfBase::ParseCallStackData(const uint64_t* userIpsAddr, uint16_t count, uint32_t pid, uint32… in ParseCallStackData() argument 50 auto symbolAndFilePathIndex = GetSymbolAndFilePathIndex(pid, userIpsAddr[i]); in ParseCallStackData() 59 callIdToPid_.insert(std::make_pair(callId, pid)); in ParseCallStackData() 62 SymbolAndFilePathIndex EbpfBase::GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip) in GetSymbolAndFilePathIndex() argument 64 auto value = pidAndIpToSymbolAndFilePathIndex_.Find(pid, ip); in GetSymbolAndFilePathIndex() 68 return GetSymbolNameIndexFromElfSym(pid, ip); in GetSymbolAndFilePathIndex() 102 void EbpfBase::UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip) in UpdateFilePathIndexToPidAndIpMap() argument 106 itor->second->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 109 pidAndIpSet->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 114 SymbolAndFilePathIndex EbpfBase::GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip) in GetSymbolNameIndexFromElfSym() argument [all …]
|
/developtools/profiler/device/plugins/process_plugin/include/ |
D | process_data_plugin.h | 63 std::vector<int> OpenProcPidFiles(int32_t pid); 64 int32_t ReadProcPidFile(int32_t pid, const char* pFileName); 65 void WriteProcessInfo(ProcessData& data, int32_t pid); 66 void WriteProcess(ProcessInfo* processinfo, const char* pFile, uint32_t fileLen, int32_t pid); 69 bool addPidBySort(int32_t pid); 71 bool WriteCpuUsageData(int pid, CpuInfo* protoc); 72 bool ReadCpuUsage(int pid, CpuInfo* protoc, uint64_t& cpuTime); 74 bool ReadBootTime(int pid, CpuInfo* protoc, uint64_t& bootTime); 76 bool WriteThreadData(int pid, CpuInfo* protoc); 81 bool WriteDiskioData(int pid, DiskioInfo* protoc); [all …]
|
/developtools/smartperf_host/ide/test/trace/component/chart/ |
D | SpProcessChart.test.ts | 45 pid: 1, 61 pid: 1, 73 pid: 1, 82 pid: 1, 91 pid: 1, 101 pid: 1, 115 pid: 1, 123 pid: 2, 142 pid: 1, 154 pid: 1242, [all …]
|
/developtools/profiler/hiebpf/include/ |
D | maps_info.h | 39 bool IsCached(uint32_t pid) in IsCached() argument 41 return (pids_.find(pid) != pids_.end()); in IsCached() 44 void CachePid(uint32_t pid) in CachePid() argument 46 pids_.insert(pid); in CachePid() 49 void RemovePid(uint32_t pid) in RemovePid() argument 51 if (auto item = pids_.find(pid); item != pids_.end()) { in RemovePid() 56 void GetMaps(uint32_t pid, std::vector<MapsItem> &mapsItems); 60 void ParseMapsLine(uint32_t pid, std::string &line, std::vector<MapsItem> &maps);
|
/developtools/profiler/device/plugins/process_plugin/src/ |
D | process_data_plugin.cpp | 110 int32_t pid = atoi(dirEnt->d_name); in GetValidPid() local 111 if (pid) { in GetValidPid() 112 return pid; in GetValidPid() 118 int32_t ProcessDataPlugin::ReadProcPidFile(int32_t pid, const char* pFileName) in ReadProcPidFile() argument 125 …if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, "%s%d/%s", path_.c_str(), pid, pF… in ReadProcPidFile() 170 bool ProcessDataPlugin::addPidBySort(int32_t pid) in addPidBySort() argument 173 auto it = std::lower_bound(pids_.begin(), pidsEnd, pid); in addPidBySort() 174 if (it != pidsEnd && *it == pid) { in addPidBySort() 177 it = pids_.insert(it, std::move(pid)); in addPidBySort() 181 …ataPlugin::WriteProcess(ProcessInfo* processinfo, const char* pFile, uint32_t fileLen, int32_t pid) in WriteProcess() argument [all …]
|
/developtools/smartperf_host/trace_streamer/test/resource/ |
D | ut_bytrace_input_thread.txt | 13 …ACCS0-2716 ( 2519) [000] d..5 168758.662877: sched_waking: comm=Binder:924_3 pid=1200 prio=120 ta… 14 …ACCS0-2716 ( 2519) [000] d..6 168758.662898: sched_wakeup: comm=Binder:924_3 pid=1200 prio=120 ta… 17 …<idle>-0 (-----) [003] d..3 168758.663092: sched_waking: comm=ksoftirqd/3 pid=29 prio=120 targ… 18 …HeapTaskDaemon-2532 ( 2519) [000] dnh2 168758.663097: sched_wakeup: comm=rcu_preempt pid=7 prio=9… 19 …<idle>-0 (-----) [003] dn.4 168758.663104: sched_wakeup: comm=ksoftirqd/3 pid=29 prio=120 targ… 24 …<idle>-0 (-----) [003] d..4 168758.663181: sched_waking: comm=rcu_preempt pid=7 prio=98 target… 25 …<idle>-0 (-----) [003] d..3 168758.663190: sched_waking: comm=ksoftirqd/3 pid=29 prio=120 targ… 26 …HeapTaskDaemon-2532 ( 2519) [000] dnh2 168758.663194: sched_wakeup: comm=rcu_preempt pid=7 prio=9… 27 …<idle>-0 (-----) [003] dn.4 168758.663198: sched_wakeup: comm=ksoftirqd/3 pid=29 prio=120 targ… 32 …<idle>-0 (-----) [003] d..4 168758.663261: sched_waking: comm=rcu_preempt pid=7 prio=98 target… [all …]
|
D | ut_bytrace_input_full.txt | 15 …ACCS0-2716 ( 2519) [000] d..5 168758.662877: sched_waking: comm=Binder:924_3 pid=1200 prio=120 ta… 16 …ACCS0-2716 ( 2519) [000] d..6 168758.662898: sched_wakeup: comm=Binder:924_3 pid=1200 prio=120 ta… 30 …<idle>-0 (-----) [003] d..4 168758.663078: sched_waking: comm=rcu_preempt pid=7 prio=98 target… 33 …<idle>-0 (-----) [003] d..3 168758.663092: sched_waking: comm=ksoftirqd/3 pid=29 prio=120 targ… 34 …HeapTaskDaemon-2532 ( 2519) [000] dnh2 168758.663097: sched_wakeup: comm=rcu_preempt pid=7 prio=9… 36 …<idle>-0 (-----) [003] dn.4 168758.663104: sched_wakeup: comm=ksoftirqd/3 pid=29 prio=120 targ… 43 …<idle>-0 (-----) [003] d..4 168758.663181: sched_waking: comm=rcu_preempt pid=7 prio=98 target… 46 …<idle>-0 (-----) [003] d..3 168758.663190: sched_waking: comm=ksoftirqd/3 pid=29 prio=120 targ… 47 …HeapTaskDaemon-2532 ( 2519) [000] dnh2 168758.663194: sched_wakeup: comm=rcu_preempt pid=7 prio=9… 49 …<idle>-0 (-----) [003] dn.4 168758.663198: sched_wakeup: comm=ksoftirqd/3 pid=29 prio=120 targ… [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
D | sched.proto | 23 int32 pid = 1; field 31 int32 pid = 2; field 42 int32 pid = 2; field 50 int32 pid = 1; field 62 int32 pid = 2; field 70 int32 pid = 2; field 77 int32 pid = 2; field 92 int32 pid = 2; field 99 int32 pid = 2; field 106 int32 pid = 2; field [all …]
|
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
D | sched.proto | 23 int32 pid = 1; field 31 int32 pid = 2; field 42 int32 pid = 2; field 50 int32 pid = 1; field 62 int32 pid = 2; field 70 int32 pid = 2; field 77 int32 pid = 2; field 92 int32 pid = 2; field 99 int32 pid = 2; field 106 int32 pid = 2; field [all …]
|
/developtools/profiler/protos/types/plugins/ftrace_data/default/ |
D | sched.proto | 23 int32 pid = 1; field 31 int32 pid = 2; field 42 int32 pid = 2; field 50 int32 pid = 1; field 62 int32 pid = 2; field 70 int32 pid = 2; field 77 int32 pid = 2; field 92 int32 pid = 2; field 99 int32 pid = 2; field 106 int32 pid = 2; field [all …]
|
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/ |
D | sched.proto | 22 int32 pid = 1; field 30 int32 pid = 2; field 41 int32 pid = 2; field 49 int32 pid = 1; field 61 int32 pid = 2; field 69 int32 pid = 2; field 76 int32 pid = 2; field 91 int32 pid = 2; field 98 int32 pid = 2; field 105 int32 pid = 2; field [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/ |
D | sched.proto | 22 int32 pid = 1; field 30 int32 pid = 2; field 41 int32 pid = 2; field 49 int32 pid = 1; field 61 int32 pid = 2; field 69 int32 pid = 2; field 76 int32 pid = 2; field 91 int32 pid = 2; field 98 int32 pid = 2; field 105 int32 pid = 2; field [all …]
|
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/process/ |
D | TabPaneStartup.test.ts | 43 pid: 3913, 50 pid: 3913, 57 pid: 3913, 64 pid: 3913, 71 pid: 3913, 78 pid: 3913,
|
/developtools/hiperf/include/ |
D | perf_record_format.h | 31 u32 pid; member 62 u32 pid, tid; member 96 u32 pid; member 133 u32 pid; member 145 u32 pid, tid; /* if PERF_SAMPLE_TID */ member 180 u32 pid, ppid; member 204 u32 pid, ppid; member 236 u32 pid; member 272 u32 pid, tid; member 346 u32 pid; member
|
/developtools/smartperf_host/ide/src/trace/bean/ |
D | MemoryConfig.ts | 17 pid: number = 0; property in MemoryConfig 30 public updateConfig(pid: number, iPid: number, processName: string, interval: number): void { 31 this.pid = pid;
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
D | memory_data_plugin.cpp | 168 if (protoConfig_.pid().size() > 0) { in Start() 169 for (int i = 0; i < protoConfig_.pid().size(); i++) { in Start() 170 int32_t pid = protoConfig_.pid(i); in Start() local 171 pidFds_.emplace(pid, OpenProcPidFiles(pid)); in Start() 335 bool MemoryDataPlugin::GetMemInfoByMemoryService(uint32_t pid, ProcessMemoryInfo* memoryInfo) in GetMemInfoByMemoryService() argument 337 std::string fullCmd = CMD_FORMAT + std::to_string(pid); in GetMemInfoByMemoryService() 370 for (int i = 0; i < protoConfig_.pid().size(); i++) { in Report() 371 int32_t pid = protoConfig_.pid(i); in Report() local 374 WriteProcinfoByPidfds(processinfo, pid); in Report() 381 smapInfo.ParseMaps(pid, *processinfo, isReportApp, isReportSmaps); in Report() [all …]
|