mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
* feat: support heap profiling in `contentTracing` * chore: backport crrev.com/c/7603976 to fix DCHECK failure * fix: heap profiling test flakes (#51224)
1.7 KiB
1.7 KiB
EnableHeapProfilingOptions Object
modestring (optional) - Controls which processes are profiled. Equivalent to--memlogin Chrome. Default isall.all- Profile all processes.browser- Profile only the browser process.gpu- Profile only the GPU process.minimal- Profile only the browser and GPU processes.renderer-sampling- Profile at most 1 renderer process. Each renderer process has a fixed probability of being profiled when the renderer process is started or, for existing processes, when heap profiling is enabled.all-renderers- Profile all renderer processes.utility-sampling- Each utility process has a fixed probability of being profiled.all-utilities- Profile all utility processes.utility-and-browser- Profile all utility processes and the browser process.
samplingRatenumber (optional) - Controls the sampling interval in bytes. The lower the interval, the more precise the profile is. However it comes at the cost of performance. Default is100000(100KB). That is enough to observe allocation sites that make allocations >500KB total, where total equals to a single allocation size times the number of such allocations at the same call site. Equivalent to--memlog-sampling-ratein Chrome. Must be an integer between1000and10000000.stackModestring (optional) - Controls the type of metadata recorded for each allocation. Equivalent to--memlog-stack-modein Chrome. Default isnative.native- Instruction addresses from unwinding the stack.native-with-thread-names- Instruction addresses from unwinding the stack. Includes the thread name as the first frame.