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

Issue 1891543003: [tracing] Turn StackFrame into struct. (Closed)

Created:
4 years, 8 months ago by Dmitry Skiba
Modified:
4 years, 8 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

[tracing] Turn StackFrame into struct. This change turns StackFrame (aka const char*) into a struct and introduces 'type' field which controls how stack frame is formatted when it's written to trace file. As an example, thread name, which previously was just a string like any other function name, is now formatted as '[Thread: %s]'. More stack frame types will be added in the future, for example native allocation tracing will add 'program counter' type. BUG=602701 Committed: https://crrev.com/28c3d160bd3817b51e4c9a20353642ad60dca0ea Cr-Commit-Position: refs/heads/master@{#388553}

Patch Set 1 #

Total comments: 23

Patch Set 2 : Use value to identify StackFrame #

Patch Set 3 : rebase #

Total comments: 20

Patch Set 4 : Kill AllocationContext::Empty #

Patch Set 5 : Add "the ones closer to main()" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -151 lines) Patch
M base/trace_event/heap_profiler_allocation_context.h View 1 2 3 4 2 chunks +46 lines, -26 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context.cc View 1 2 3 2 chunks +25 lines, -16 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.h View 2 chunks +3 lines, -3 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 3 3 chunks +17 lines, -19 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 11 chunks +37 lines, -37 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_register_unittest.cc View 1 2 3 7 chunks +11 lines, -9 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.cc View 1 2 2 chunks +9 lines, -15 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer_unittest.cc View 1 2 3 4 chunks +14 lines, -7 lines 0 comments Download
M base/trace_event/heap_profiler_stack_frame_deduplicator.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M base/trace_event/heap_profiler_stack_frame_deduplicator_unittest.cc View 3 chunks +34 lines, -17 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
Dmitry Skiba
Guys, this is part from 'Implement allocation tracing' CL which just turns StackFrame into a ...
4 years, 8 months ago (2016-04-13 21:36:33 UTC) #3
Primiano Tucci (use gerrit)
Splitting this totally makes sense, thanks for doing it. Overall this change makes lot of ...
4 years, 8 months ago (2016-04-14 10:15:34 UTC) #4
Dmitry Skiba
OK, so the key thing is that while StackFrame::value is a const void*, it's not ...
4 years, 8 months ago (2016-04-15 07:01:40 UTC) #5
Primiano Tucci (use gerrit)
I'd really prefer that we keep the code simpler and assume that null value == ...
4 years, 8 months ago (2016-04-15 13:47:47 UTC) #6
Dmitry Skiba
OK, I agree that it's easier to treat StackFrame as basically a wrapper around a ...
4 years, 8 months ago (2016-04-18 13:22:02 UTC) #7
Dmitry Skiba
Ping. Please review.
4 years, 8 months ago (2016-04-19 15:42:23 UTC) #8
Primiano Tucci (use gerrit)
Ok looked at this with a fresh (kind of) mind. frame_count makes sense. Just please ...
4 years, 8 months ago (2016-04-19 19:45:06 UTC) #9
Dmitry Skiba
https://codereview.chromium.org/1891543003/diff/40001/base/trace_event/heap_profiler_allocation_context.cc File base/trace_event/heap_profiler_allocation_context.cc (right): https://codereview.chromium.org/1891543003/diff/40001/base/trace_event/heap_profiler_allocation_context.cc#newcode24 base/trace_event/heap_profiler_allocation_context.cc:24: return lhs.value != rhs.value; On 2016/04/19 19:45:06, Primiano Tucci ...
4 years, 8 months ago (2016-04-19 22:14:14 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1891543003/diff/40001/base/trace_event/heap_profiler_allocation_context.h File base/trace_event/heap_profiler_allocation_context.h (right): https://codereview.chromium.org/1891543003/diff/40001/base/trace_event/heap_profiler_allocation_context.h#newcode57 base/trace_event/heap_profiler_allocation_context.h:57: const void* value; On 2016/04/19 22:14:14, Dmitry Skiba wrote: ...
4 years, 8 months ago (2016-04-20 13:18:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891543003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891543003/80001
4 years, 8 months ago (2016-04-20 17:53:44 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-20 19:37:42 UTC) #16
Dmitry Skiba
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1907593002/ by dskiba@google.com. ...
4 years, 8 months ago (2016-04-20 19:55:44 UTC) #17
cmumford
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1911433003/ by cmumford@chromium.org. ...
4 years, 8 months ago (2016-04-20 19:59:53 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:25:38 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/28c3d160bd3817b51e4c9a20353642ad60dca0ea
Cr-Commit-Position: refs/heads/master@{#388553}

Powered by Google App Engine
This is Rietveld 408576698