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

Issue 1877313003: [tracing] Track number of allocations in heap profiler (Closed)

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

Description

[tracing] Track number of allocations in heap profiler This CL adds a count along with size that is tracked for each allocation context to the trace files. BUG=603648 Committed: https://crrev.com/1eedc59e16922772a374b00de7546e6c34a30c11 Cr-Commit-Position: refs/heads/master@{#387517}

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 26

Patch Set 3 : fix name and formats. #

Total comments: 4

Patch Set 4 : fix name and formats. #

Patch Set 5 : nits. #

Patch Set 6 : rebase. #

Total comments: 1

Patch Set 7 : fix indentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -104 lines) Patch
M base/trace_event/heap_profiler_allocation_context.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.h View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.cc View 1 2 3 4 5 8 chunks +41 lines, -23 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer_unittest.cc View 1 2 10 chunks +72 lines, -55 lines 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/web_process_memory_dump_impl.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/WebProcessMemoryDump.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (14 generated)
ssid
Can one of you take a look at this CL before I send over to ...
4 years, 8 months ago (2016-04-14 18:55:40 UTC) #3
Dmitry Skiba
https://codereview.chromium.org/1877313003/diff/20001/base/trace_event/heap_profiler_allocation_context.h File base/trace_event/heap_profiler_allocation_context.h (right): https://codereview.chromium.org/1877313003/diff/20001/base/trace_event/heap_profiler_allocation_context.h#newcode49 base/trace_event/heap_profiler_allocation_context.h:49: struct AllocationsSizeAndCount { You call this 'metrics' everywhere else ...
4 years, 8 months ago (2016-04-14 19:07:30 UTC) #5
Primiano Tucci (use gerrit)
//base/trace_event LGTM % dskiba@ comments (and some extra small mine) and Maria's if she has ...
4 years, 8 months ago (2016-04-14 19:37:22 UTC) #7
Maria
Is there a place where size gets decremented when an object is freed? https://codereview.chromium.org/1877313003/diff/40001/base/trace_event/heap_profiler_heap_dump_writer.cc File ...
4 years, 8 months ago (2016-04-14 20:11:34 UTC) #8
ssid
Thanks addressed comments. https://codereview.chromium.org/1877313003/diff/20001/base/trace_event/heap_profiler_allocation_context.h File base/trace_event/heap_profiler_allocation_context.h (right): https://codereview.chromium.org/1877313003/diff/20001/base/trace_event/heap_profiler_allocation_context.h#newcode49 base/trace_event/heap_profiler_allocation_context.h:49: struct AllocationsSizeAndCount { On 2016/04/14 19:37:21, ...
4 years, 8 months ago (2016-04-14 20:17:11 UTC) #9
ssid
+haraken for changes in dump providers and webkit. +rbyers for 1 line change in blink ...
4 years, 8 months ago (2016-04-14 20:30:54 UTC) #11
Maria
lgtm
4 years, 8 months ago (2016-04-14 20:33:04 UTC) #12
Rick Byers
third_party/WebKit/public LGTM
4 years, 8 months ago (2016-04-14 20:34:37 UTC) #13
ssid
+petrcermak fyi.
4 years, 8 months ago (2016-04-14 20:46:26 UTC) #14
Dmitry Skiba
https://codereview.chromium.org/1877313003/diff/120001/third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc File third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc (right): https://codereview.chromium.org/1877313003/diff/120001/third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc#newcode185 third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc:185: allocator_name); nit: wrong indentation
4 years, 8 months ago (2016-04-14 21:29:41 UTC) #16
haraken
LGTM
4 years, 8 months ago (2016-04-14 23:49:38 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877313003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877313003/120001
4 years, 8 months ago (2016-04-15 00:16:38 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877313003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877313003/140001
4 years, 8 months ago (2016-04-15 00:23:03 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 01:46:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877313003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877313003/140001
4 years, 8 months ago (2016-04-15 01:52:18 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 8 months ago (2016-04-15 01:56:58 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 01:57:53 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1eedc59e16922772a374b00de7546e6c34a30c11
Cr-Commit-Position: refs/heads/master@{#387517}

Powered by Google App Engine
This is Rietveld 408576698