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

Issue 1900223003: [tracing] Ignore tracing 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, Maria, DmitrySkiba
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Ignore tracing allocations in heap profiler This CL removes the memory usage of tracing from the heap profiler. Adds support for an ignore event which clears the stack frame and type for the allocations happening in that scope and reset them to "overhead". We do not make it null because it will show under "<other>" or "[unknown]". Adds the ignore events to major functions that allocate memory for tracing. The total is usually 500Kib more than the total in "tracing" dump. BUG=604689 Committed: https://crrev.com/04d1750c6721a424ae45e7e28f71dba69f1789db Cr-Commit-Position: refs/heads/master@{#389159}

Patch Set 1 : #

Patch Set 2 : nits. #

Total comments: 21

Patch Set 3 : Define in new file. #

Patch Set 4 : fixes. #

Total comments: 20

Patch Set 5 : make heap_profiler.h and rebase #

Total comments: 13

Patch Set 6 : fix year. #

Patch Set 7 : remove cc file and inline. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -1 line) Patch
M base/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A base/trace_event/heap_profiler.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M base/trace_event/trace_buffer.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M base/trace_event/trace_log.cc View 1 2 3 4 6 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (16 generated)
ssid
+primiano I have added events as you suggested. ptal thanks.
4 years, 8 months ago (2016-04-19 23:07:24 UTC) #5
Primiano Tucci (use gerrit)
Ok conceptually this makes perfect sense. I think we need some small improvements. THe major ...
4 years, 8 months ago (2016-04-20 16:34:57 UTC) #7
Dmitry Skiba
https://codereview.chromium.org/1900223003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.h File base/trace_event/heap_profiler_allocation_context_tracker.h (right): https://codereview.chromium.org/1900223003/diff/60001/base/trace_event/heap_profiler_allocation_context_tracker.h#newcode92 base/trace_event/heap_profiler_allocation_context_tracker.h:92: uint32_t ignore_scope_count_; Also, size_t is better here.
4 years, 8 months ago (2016-04-20 16:59:15 UTC) #9
ssid
Thanks. Made changes, ptal. > THe major bummer is that we should not cause the ...
4 years, 8 months ago (2016-04-21 01:07:46 UTC) #10
Primiano Tucci (use gerrit)
LGTM but please wait for dskiba to do another pass and give his LGTM. I ...
4 years, 8 months ago (2016-04-21 19:47:32 UTC) #11
ssid
thanks, made changes. https://codereview.chromium.org/1900223003/diff/100001/base/trace_event/heap_profiler_allocation_context_tracker.cc File base/trace_event/heap_profiler_allocation_context_tracker.cc (right): https://codereview.chromium.org/1900223003/diff/100001/base/trace_event/heap_profiler_allocation_context_tracker.cc#newcode124 base/trace_event/heap_profiler_allocation_context_tracker.cc:124: if (ignore_scope_depth_) { On 2016/04/21 19:47:31, ...
4 years, 8 months ago (2016-04-22 04:57:12 UTC) #15
ssid
dskiba@ could you please take a look to see if the rebase is correct? Thanks!
4 years, 8 months ago (2016-04-22 04:58:21 UTC) #16
ssid
+Nico: Please look at base/BUILD.gn. Added 2 files. Thanks!
4 years, 8 months ago (2016-04-22 04:59:41 UTC) #18
Dmitry Skiba
https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode1 base/trace_event/heap_profiler.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-04-22 05:37:45 UTC) #19
ssid
https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode1 base/trace_event/heap_profiler.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-04-22 05:48:27 UTC) #20
Dmitry Skiba
https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode29 base/trace_event/heap_profiler.h:29: INTERNAL_HEAP_PROFILER_EVENT_UID(scoped_ignore); \ On 2016/04/22 05:48:27, ssid wrote: > On ...
4 years, 8 months ago (2016-04-22 06:01:20 UTC) #21
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode15 base/trace_event/heap_profiler.h:15: // Implementation detail: heap profiler macros create temporary variables ...
4 years, 8 months ago (2016-04-22 09:24:50 UTC) #22
Primiano Tucci (use gerrit)
ah very small note: I think the title of this CL should be changed to: ...
4 years, 8 months ago (2016-04-22 13:24:01 UTC) #23
ssid
https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode15 base/trace_event/heap_profiler.h:15: // Implementation detail: heap profiler macros create temporary variables ...
4 years, 8 months ago (2016-04-22 14:49:07 UTC) #24
ssid
Made changes except the UID macro. Thanks. https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h File base/trace_event/heap_profiler.h (right): https://codereview.chromium.org/1900223003/diff/180001/base/trace_event/heap_profiler.h#newcode29 base/trace_event/heap_profiler.h:29: INTERNAL_HEAP_PROFILER_EVENT_UID(scoped_ignore); \ ...
4 years, 8 months ago (2016-04-22 16:24:49 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900223003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900223003/220001
4 years, 8 months ago (2016-04-22 16:25:18 UTC) #28
Nico
build.gn lgtm Maybe it makes sense to have a BUILD.gn in your folder that defines ...
4 years, 8 months ago (2016-04-22 16:28:10 UTC) #29
Primiano Tucci (use gerrit)
On 2016/04/22 16:28:10, Nico wrote: > build.gn lgtm > > Maybe it makes sense to ...
4 years, 8 months ago (2016-04-22 17:04:29 UTC) #30
Primiano Tucci (use gerrit)
PS7 LGTM
4 years, 8 months ago (2016-04-22 17:06:26 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 17:50:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900223003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900223003/220001
4 years, 8 months ago (2016-04-22 17:51:10 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:220001)
4 years, 8 months ago (2016-04-22 17:56:59 UTC) #37
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/04d1750c6721a424ae45e7e28f71dba69f1789db Cr-Commit-Position: refs/heads/master@{#389159}
4 years, 8 months ago (2016-04-22 19:49:35 UTC) #39
Nico
4 years, 8 months ago (2016-04-22 19:57:43 UTC) #40
Message was sent while issue was closed.
Thanks for the pointer! Left a question at
https://codereview.chromium.org/1540953003/

On Fri, Apr 22, 2016 at 1:04 PM, <primiano@chromium.org> wrote:

> On 2016/04/22 16:28:10, Nico wrote:
> > build.gn lgtm
> >
> > Maybe it makes sense to have a BUILD.gn in your folder that defines a
> source_set
> > for this and have base/BUILD.gn pull that in?
>
> I think it used to be like that until
> https://codereview.chromium.org/1540953003
> .
>
>
> https://codereview.chromium.org/1900223003/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698