Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Issue 1921773003: Reland of [tracing] Add native allocation tracing mode. (Closed)

Created:
4 years, 7 months ago by Dmitry Skiba
Modified:
4 years, 7 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -53 lines) Patch
M base/base_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/base_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler.h View 1 chunk +8 lines, -4 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context.h View 4 chunks +10 lines, -6 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.h View 1 2 3 3 chunks +20 lines, -13 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 3 4 3 chunks +61 lines, -20 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M base/trace_event/heap_profiler_stack_frame_deduplicator.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 2 chunks +25 lines, -1 line 0 comments Download
M base/trace_event/trace_event.h View 1 chunk +8 lines, -4 lines 0 comments Download
M base/trace_event/trace_log.cc View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
Dmitry Skiba
4 years, 7 months ago (2016-04-26 07:35:23 UTC) #1
Dmitry Skiba
4 years, 7 months ago (2016-04-26 07:35:57 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1921773003/diff/20001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1921773003/diff/20001/base/base.gyp#newcode16 base/base.gyp:16: 'hard_dependency': 1, Hmm this is a strong hammer. Not ...
4 years, 7 months ago (2016-04-26 15:20:14 UTC) #5
Primiano Tucci (use gerrit)
having said this, obviously if base owners are fine with this change I am fine ...
4 years, 7 months ago (2016-04-26 16:03:23 UTC) #6
Dmitry Skiba
On 2016/04/26 15:20:14, Primiano Tucci wrote: > https://codereview.chromium.org/1921773003/diff/20001/base/base.gyp > File base/base.gyp (right): > > https://codereview.chromium.org/1921773003/diff/20001/base/base.gyp#newcode16 ...
4 years, 7 months ago (2016-04-26 16:03:26 UTC) #7
Dmitry Skiba
Brett, PTAL?
4 years, 7 months ago (2016-04-26 17:12:33 UTC) #8
Dmitry Skiba
PTAL, moved debugging_flags.h into .cc
4 years, 7 months ago (2016-04-27 04:23:52 UTC) #10
Primiano Tucci (use gerrit)
On 2016/04/27 04:23:52, Dmitry Skiba wrote: > PTAL, moved debugging_flags.h into .cc I think you ...
4 years, 7 months ago (2016-04-27 12:43:26 UTC) #12
Dmitry Skiba
On 2016/04/27 12:43:26, Primiano Tucci wrote: > On 2016/04/27 04:23:52, Dmitry Skiba wrote: > > ...
4 years, 7 months ago (2016-04-27 15:35:14 UTC) #13
Primiano Tucci (use gerrit)
On 2016/04/27 15:35:14, Dmitry Skiba wrote: > Hmm, yeah, I guess I can kill ENABLE_NATIVE_ALLOCATION_TRACES ...
4 years, 7 months ago (2016-04-27 15:50:58 UTC) #14
Dmitry Skiba
On 2016/04/27 15:50:58, Primiano Tucci wrote: > On 2016/04/27 15:35:14, Dmitry Skiba wrote: > > ...
4 years, 7 months ago (2016-04-27 16:57:07 UTC) #15
Primiano Tucci (use gerrit)
LGTM w/ comments addressed. https://codereview.chromium.org/1921773003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.cc File base/trace_event/heap_profiler_allocation_context_tracker.cc (right): https://codereview.chromium.org/1921773003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.cc#newcode151 base/trace_event/heap_profiler_allocation_context_tracker.cc:151: for (const auto& event_name: pseudo_stack_) ...
4 years, 7 months ago (2016-04-28 07:02:43 UTC) #16
Primiano Tucci (use gerrit)
Ah also please fix the commit message, which does not reflect the change in the ...
4 years, 7 months ago (2016-04-28 07:09:49 UTC) #17
Dmitry Skiba
https://codereview.chromium.org/1921773003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.cc File base/trace_event/heap_profiler_allocation_context_tracker.cc (right): https://codereview.chromium.org/1921773003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.cc#newcode151 base/trace_event/heap_profiler_allocation_context_tracker.cc:151: for (const auto& event_name: pseudo_stack_) { On 2016/04/28 07:02:42, ...
4 years, 7 months ago (2016-04-28 18:16:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921773003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921773003/80001
4 years, 7 months ago (2016-04-28 19:34:11 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-28 19:40:45 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:20:19 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3de5ae3b200a3b86c9e7b48adbf2a4ed2c113216
Cr-Commit-Position: refs/heads/master@{#390449}

Powered by Google App Engine
This is Rietveld 408576698