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

Issue 883233003: Oilpan: Add free list profiler. (Closed)

Created:
5 years, 10 months ago by Yuta Kitamura
Modified:
5 years, 10 months ago
CC:
blink-reviews, haraken, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Add free list profiler. This patch is an attempt to land a part of keishi's free list profiler patch (https://codereview.chromium.org/717923005/). Dumping mark/sweep stats is not included in this patch; that will be implemented in the next CL. This patch adds a functionality to dump statistics of free lists. The profiler is guarded by ENABLE(GC_PROFILING), so you need to set a GYP variable to be able to record the data. Since it is time-consuming to collect these data, the profiler is disabled by default; you need to explicitly include a Telemetry tracing category "disabled-by-default-blink_gc". Some modifications are made to keishi's original patch, in addition to other minor cleanups. Notable ones are: * "FreeList" data is now in TRACE_DISABLED_BY_DEFAULT("blink_gc") category. * FreeList snapshot timer is stored as a member of ThreadState instead of a static variable. BUG=454273 R=haraken@chromium.org, keishi@chromium.org, oilpan-reviews@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189568

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address comments to Patch Set 1. #

Total comments: 5

Patch Set 3 : Change type of m_cumulativeAllocationSize to size_t. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -0 lines) Patch
M Source/platform/heap/Heap.h View 1 2 4 chunks +27 lines, -0 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 1 2 4 chunks +58 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 3 chunks +10 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 4 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Yuta Kitamura
5 years, 10 months ago (2015-02-04 06:40:29 UTC) #1
kouhei (in TOK)
lgtm
5 years, 10 months ago (2015-02-04 06:46:10 UTC) #3
keishi
https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp#newcode1514 Source/platform/heap/Heap.cpp:1514: json.setDouble("totalAllocationSize", m_totalAllocationSize); nit: I think this could be renamed ...
5 years, 10 months ago (2015-02-04 06:58:26 UTC) #4
peria
Could you add a profiler for (disabled-by-default-)blink_gc category in Telemetry? (in another CL, of course.)
5 years, 10 months ago (2015-02-04 07:07:27 UTC) #6
haraken
https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp#newcode552 Source/platform/heap/Heap.cpp:552: , m_totalAllocationSize(0.0) Where is this used? https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp#newcode553 Source/platform/heap/Heap.cpp:553: , ...
5 years, 10 months ago (2015-02-04 07:30:01 UTC) #7
Yuta Kitamura
PTAL https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp#newcode1514 Source/platform/heap/Heap.cpp:1514: json.setDouble("totalAllocationSize", m_totalAllocationSize); On 2015/02/04 06:58:26, keishi wrote: > ...
5 years, 10 months ago (2015-02-04 09:45:42 UTC) #9
Yuta Kitamura
On 2015/02/04 07:07:27, peria wrote: > Could you add a profiler for (disabled-by-default-)blink_gc category in ...
5 years, 10 months ago (2015-02-04 09:49:02 UTC) #10
keishi
LGTM https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/883233003/diff/1/Source/platform/heap/Heap.cpp#newcode1514 Source/platform/heap/Heap.cpp:1514: json.setDouble("totalAllocationSize", m_totalAllocationSize); On 2015/02/04 09:45:42, Yuta Kitamura wrote: ...
5 years, 10 months ago (2015-02-04 11:05:40 UTC) #11
haraken
LGTM https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/Heap.h#newcode832 Source/platform/heap/Heap.h:832: double m_cumulativeAllocationSize; double => size_t ? https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/ThreadState.cpp File ...
5 years, 10 months ago (2015-02-04 14:14:57 UTC) #12
Yuta Kitamura
https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/Heap.h#newcode832 Source/platform/heap/Heap.h:832: double m_cumulativeAllocationSize; On 2015/02/04 14:14:57, haraken wrote: > > ...
5 years, 10 months ago (2015-02-05 04:13:41 UTC) #14
haraken
https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/883233003/diff/20001/Source/platform/heap/ThreadState.cpp#newcode1188 Source/platform/heap/ThreadState.cpp:1188: static const double recordIntervalSeconds = 0.010; On 2015/02/05 04:13:41, ...
5 years, 10 months ago (2015-02-05 04:15:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883233003/30001
5 years, 10 months ago (2015-02-05 06:19:44 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 15:30:11 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:30001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189568

Powered by Google App Engine
This is Rietveld 408576698