Chromium Code Reviews
DescriptionReland of [tracing] Add native allocation tracing mode.
Original CL (1839503002) was reverted because it broke GYP builds. This CL
removes dependency on debugging_flags.h from a header and moves it into
a source file, avoiding the issue.
Original issue's description:
> [tracing] Add native allocation tracing mode.
>
> This change adds 'native' mode to '--enable-heap-profiling' option. When
> started with '--enable-heap-profiling=native' Chrome will keep native
> (real) stack traces for all live allocations. These native stack traces
> are then dumped to a trace file if 'memory-infra' category is enabled.
> Stack traces are dumped unsymbolized (for performance reasons), and there
> is a script (third_party/catapult/tracing/bin/symbolize_trace) that
> symbolizes all stack traces in a given trace file.
>
> Design document: https://goo.gl/DFoqfi
>
> Note: native stack tracing relies on frame pointers. You'll need to use
> either debug or a profiling release build (enable_profiling = true).
>
> Note: for now this all works on Linux @ x86/x64 only.
BUG=602701
TBR=mark@chromium.org
Committed: https://crrev.com/3de5ae3b200a3b86c9e7b48adbf2a4ed2c113216
Cr-Commit-Position: refs/heads/master@{#390449}
Patch Set 1 : Original CL #Patch Set 2 : Make sure base builds first to generate debugging_flags.h #
Total comments: 1
Patch Set 3 : Move debuggin_flags.h depedency into .cc file #Patch Set 4 : Make NATIVE_STACK mode always available #
Total comments: 7
Patch Set 5 : Address comments #Messages
Total messages: 26 (9 generated)
|