代码拉取完成,页面将自动刷新
29535
[MD] Profiler Memory Tooling Support
已合并
What type of PR is this?
/kind task
What does this PR do / why do we need it:
This PR extends MindData profiler support to collect:
- Memory info for a process: VSS, RSS and PSS values are collected from /proc/PID/smaps to determine the memory used by a process; and
- System memory info: Total, Available and Used memory values are collected for system memory usage using /proc/meminfo.
Internally:
- memory info is added to the process information and system information in CpuSampler
- 6 new Profiler APIs are provided (for future AutoTune support): GetMainProcessMemoryInfoByTime/ByStep/ByEpoch() and GetSystemMemoryInfoByTime/ByStep/ByEpoch()
Externally:
- process_memory_info and system_memory_info are added to the cpu_utilization.json file
Which issue(s) this PR fixes:
Fixes # https://e.gitee.com/mind_spore/dashboard?issue=I4LCEQ
Special notes for your reviewers:
This PR replaces work begun in closed !27313:MD Memory tool/ "MD Memory Tool".