memory-infra heap profiler: enable only for a specific process |
|
Issue descriptionBackground context: go/memory-infra Follow up to the offline discussion today. The question is: should we have something in the trace config to say "enable heap profiler only on this(these) process(es)". There are two aspects here: 1) --enable-heap-profiling we can't do anything here, as this happens very early, so all processes must do the heap tracking. I think this is very hard to change. At the same time, this doesn't cause too many problems % slowdown. 2) the actual dump in the trace. this is what might cause problems. If we have 50 renderers and all them dump their heap, the trace explodes. Having the filter in the trace config would solve 2
,
Jan 16 2017
2 is already supported by go/traceontap (that I should remember to check in, I have a pending codereview) 1 I think the best way here is to introduce a level of the form "DETAILED_FOR_PROCESS" in MemoryDumpREquestArgs and propagate the change to the devtools protocol, so we can add the following feature to trace-on-tap: - Enable tracing (this is already possible via devtools) - request dump with "DETAILED_FOR_PROCESS". RequestMemoryDump is already exposed in the devtools protocol, however only when binding to the browser process. An extension can only bind to the renderer process and from there we don't propagate the call. It's a matter of finish that part of the plumbing in devtools. - disable tracing (already possible) |
|
►
Sign in to add a comment |
|
Comment 1 by dskiba@chromium.org
, Jan 13 2017