-
Notifications
You must be signed in to change notification settings - Fork 8
Process Annotation #1
Copy link
Copy link
Open
Description
A useful feature for doing diffs between profile runs with Chrome is process annotations. Since Chrome is multiprocess comparing profile runs is tricky. If process ids are not included, then all chrome.exe processes get merged into one stack frame by pprof (since they have the same name). If the pid is included, then diffing is impossible since the stack frames have different names.
I suggest an approach for annotating process frames based on their pid.
For example a flag
--tag-pid=<pid>:<tag> would tag process with pid pid, such that the function name of the frame in pprof would be like <process-name> (<tag>).
An example with Chrome could be --tag-pid=1234:GPU, resulting in process 1234 being chrome.exe (GPU) in pprof.
Some considerations,
- This should at least send a warning if a tag was not consumed. This means the user specified a pid that was not present in the trace.
- This should perhaps be exclusive from the
--includeProcessAndThreadIdsflag, and should exit if both flags are present.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels