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

Issue 1911643002: Add configurable limit to allocations in heap profiler. (Closed)

Created:
4 years, 8 months ago by Maria
Modified:
4 years, 7 months ago
CC:
ssid, DmitrySkiba, 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

Add configurable limit to allocations in heap profiler. Adds a new trace config parameter, min_allocation_size_bytes, which determines the cutoff for allocation sizes below which the traces for that allocation are excluded from the trace file. Makes the default cutoff to be 1024 bytes. BUG=605298 Committed: https://crrev.com/3b1e75900d721b57351754318af8bcfaa7815744 Cr-Commit-Position: refs/heads/master@{#391773}

Patch Set 1 #

Patch Set 2 : Formatting changes #

Total comments: 14

Patch Set 3 : Fix cast style #

Total comments: 3

Patch Set 4 : Addressing comments #

Total comments: 6

Patch Set 5 : Moving to use session state #

Total comments: 30

Patch Set 6 : Addressing comments #

Patch Set 7 : Fixed tracing handler unittest #

Total comments: 4

Patch Set 8 : Fixed naming in protocol.json #

Total comments: 10

Patch Set 9 : Addressed comments #

Patch Set 10 : Update rename in unittest #

Total comments: 2

Patch Set 11 : Remove memory dump config details from devtools #

Patch Set 12 : unittest fix #

Patch Set 13 : Unittest changes #

Patch Set 14 : Whitespace change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -119 lines) Patch
M base/trace_event/heap_profiler_heap_dump_writer.h View 1 2 3 4 5 4 chunks +12 lines, -6 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer.cc View 1 2 3 4 5 6 7 8 8 chunks +36 lines, -22 lines 0 comments Download
M base/trace_event/heap_profiler_heap_dump_writer_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -24 lines 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -5 lines 0 comments Download
M base/trace_event/memory_dump_session_state.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_session_state.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M base/trace_event/trace_config.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -7 lines 0 comments Download
M base/trace_event/trace_config.cc View 1 2 3 4 5 6 7 8 7 chunks +79 lines, -30 lines 0 comments Download
M base/trace_event/trace_config_memory_test_util.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 48 (16 generated)
Maria
4 years, 8 months ago (2016-04-20 22:01:32 UTC) #2
caseq
https://codereview.chromium.org/1911643002/diff/40001/base/trace_event/trace_config.cc File base/trace_event/trace_config.cc (right): https://codereview.chromium.org/1911643002/diff/40001/base/trace_event/trace_config.cc#newcode524 base/trace_event/trace_config.cc:524: if (!memory_dump_config.GetInteger(kMinAllocationSize, &min_size_bytes)) { Please also update MemoryDumpConfig in ...
4 years, 8 months ago (2016-04-20 22:45:23 UTC) #4
ssid
Please update the trace_config_unittest.cc. I know this code is never used. But it will good ...
4 years, 8 months ago (2016-04-20 23:00:30 UTC) #6
ssid
The description is misleading: /s/config parameter/trace config parameter. "cutoff for allocation sizes that we keep ...
4 years, 8 months ago (2016-04-20 23:06:51 UTC) #7
Maria
Thanks for your comments so far. I am still working on getting the unit tests ...
4 years, 8 months ago (2016-04-21 00:03:56 UTC) #9
Primiano Tucci (use gerrit)
Thanks a lot for working on this Maria For the name I'd go for breakdown_threshold_bytes ...
4 years, 8 months ago (2016-04-21 16:53:22 UTC) #10
Maria
Still working on unit tests. Primiano, can you take a look at non-test stuff? I ...
4 years, 8 months ago (2016-04-22 13:36:38 UTC) #11
Primiano Tucci (use gerrit)
Everything makes sense % one minor thing in the internal ctor of HeapDumpWriter. My only ...
4 years, 8 months ago (2016-04-22 14:18:29 UTC) #12
Maria
PTAL https://codereview.chromium.org/1911643002/diff/80001/base/trace_event/heap_profiler_heap_dump_writer.cc File base/trace_event/heap_profiler_heap_dump_writer.cc (right): https://codereview.chromium.org/1911643002/diff/80001/base/trace_event/heap_profiler_heap_dump_writer.cc#newcode76 base/trace_event/heap_profiler_heap_dump_writer.cc:76: // Groups the allocations in the bucket by ...
4 years, 7 months ago (2016-04-25 18:37:24 UTC) #13
caseq
https://codereview.chromium.org/1911643002/diff/60001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1911643002/diff/60001/third_party/WebKit/Source/devtools/protocol.json#newcode4701 third_party/WebKit/Source/devtools/protocol.json:4701: { "name": "min_allocation_size_bytes", "type": "number", "optional": true, "description": "Provides ...
4 years, 7 months ago (2016-04-26 01:15:08 UTC) #14
Maria
Andrey, I am getting the following errors on upload from devtools presubmit: JSDoc validator output: ...
4 years, 7 months ago (2016-04-27 22:58:12 UTC) #15
Primiano Tucci (use gerrit)
Awesome! //base/trace_event LGTM with some minor comments. Thanks a lot for doing this Maria! Good ...
4 years, 7 months ago (2016-04-28 07:33:46 UTC) #16
Maria
https://codereview.chromium.org/1911643002/diff/140001/base/trace_event/trace_config.cc File base/trace_event/trace_config.cc (right): https://codereview.chromium.org/1911643002/diff/140001/base/trace_event/trace_config.cc#newcode550 base/trace_event/trace_config.cc:550: && min_size_bytes >= 0) { On 2016/04/28 07:33:45, Primiano ...
4 years, 7 months ago (2016-04-28 17:23:39 UTC) #17
Maria
+dgozman, pfeldman for Blink approvals
4 years, 7 months ago (2016-04-28 17:27:20 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911643002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911643002/160001
4 years, 7 months ago (2016-04-28 17:33:10 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/152551)
4 years, 7 months ago (2016-04-28 17:44:44 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911643002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911643002/180001
4 years, 7 months ago (2016-04-28 18:18:40 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 20:00:35 UTC) #27
Primiano Tucci (use gerrit)
still lgtm. +haraken for the trivial changes in the Web mem dump adaptor. https://codereview.chromium.org/1911643002/diff/140001/base/trace_event/trace_config.cc File ...
4 years, 7 months ago (2016-04-28 20:55:11 UTC) #29
pfeldman
https://codereview.chromium.org/1911643002/diff/180001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1911643002/diff/180001/third_party/WebKit/Source/devtools/protocol.json#newcode4704 third_party/WebKit/Source/devtools/protocol.json:4704: { "id": "HeapProfiler", This is getting too hairy. Could ...
4 years, 7 months ago (2016-04-29 02:14:27 UTC) #30
haraken
Source/platform/ LGTM
4 years, 7 months ago (2016-04-29 06:55:02 UTC) #31
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1911643002/diff/180001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1911643002/diff/180001/third_party/WebKit/Source/devtools/protocol.json#newcode4704 third_party/WebKit/Source/devtools/protocol.json:4704: { "id": "HeapProfiler", On 2016/04/29 02:14:27, pfeldman wrote: > ...
4 years, 7 months ago (2016-04-29 08:54:01 UTC) #32
Maria
On 2016/04/29 08:54:01, Primiano Tucci (traveling) wrote: > https://codereview.chromium.org/1911643002/diff/180001/third_party/WebKit/Source/devtools/protocol.json > File third_party/WebKit/Source/devtools/protocol.json (right): > > ...
4 years, 7 months ago (2016-04-29 22:56:25 UTC) #33
pfeldman
> Pavel, > > I'd appreciate if you can provide some actionable next steps. I ...
4 years, 7 months ago (2016-05-02 17:26:28 UTC) #34
Maria
On 2016/05/02 17:26:28, pfeldman wrote: > > Pavel, > > > > I'd appreciate if ...
4 years, 7 months ago (2016-05-02 17:42:17 UTC) #35
Maria
On 2016/05/02 17:42:17, Maria wrote: > On 2016/05/02 17:26:28, pfeldman wrote: > > > Pavel, ...
4 years, 7 months ago (2016-05-03 18:33:28 UTC) #36
pfeldman
protocol lgtm
4 years, 7 months ago (2016-05-04 23:02:48 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911643002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911643002/200001
4 years, 7 months ago (2016-05-04 23:46:58 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/106348)
4 years, 7 months ago (2016-05-05 00:27:28 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911643002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911643002/260001
4 years, 7 months ago (2016-05-05 05:29:27 UTC) #45
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-05-05 06:51:53 UTC) #46
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 06:53:16 UTC) #48
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/3b1e75900d721b57351754318af8bcfaa7815744
Cr-Commit-Position: refs/heads/master@{#391773}

Powered by Google App Engine
This is Rietveld 408576698