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

Issue 304673003: Add UMAs about Blink GC metrics (Closed)

Created:
6 years, 6 months ago by haraken
Modified:
6 years, 6 months ago
CC:
blink-reviews, kouhei+heap_chromium.org
Visibility:
Public.

Description

Add UMAs about Blink GC metrics This CL adds the following metrics to UMAs: - Duration of time consumed in Heap::collectGarbage(). - Duration of time consumed in ThreadState::performPendingSweep(). - The total size of object space in all threads when Heap::collectGarbage() is triggered. BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175016

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

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

Messages

Total messages: 14 (0 generated)
haraken
Chromium side CL is here: https://codereview.chromium.org/302433014 PTAL.
6 years, 6 months ago (2014-05-28 09:02:44 UTC) #1
Mads Ager (chromium)
Looks great. Can we add totalAllocatedSpaceInAllThreads as a separate stat as well? https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp ...
6 years, 6 months ago (2014-05-28 09:35:44 UTC) #2
haraken
https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/ThreadState.cpp#newcode826 Source/platform/heap/ThreadState.cpp:826: timeStamp = WTF::currentTimeMS(); On 2014/05/28 09:35:45, Mads Ager (chromium) ...
6 years, 6 months ago (2014-05-28 09:40:15 UTC) #3
Mads Ager (chromium)
On 2014/05/28 09:40:15, haraken wrote: > https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/ThreadState.cpp > File Source/platform/heap/ThreadState.cpp (right): > > https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/ThreadState.cpp#newcode826 > ...
6 years, 6 months ago (2014-05-28 10:01:40 UTC) #4
haraken
https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/304673003/diff/40001/Source/platform/heap/Heap.cpp#newcode1702 Source/platform/heap/Heap.cpp:1702: uint64_t Heap::totalObjectSpaceInAllThreads() On 2014/05/28 09:35:45, Mads Ager (chromium) wrote: ...
6 years, 6 months ago (2014-05-28 10:40:26 UTC) #5
haraken
PTAL
6 years, 6 months ago (2014-05-28 10:40:32 UTC) #6
Mads Ager (chromium)
LGTM
6 years, 6 months ago (2014-05-28 12:39:56 UTC) #7
haraken
Alexei, Ilya: Would you mind taking a look? The corresponding Chromium-side CL is here: https://codereview.chromium.org/302433014/
6 years, 6 months ago (2014-05-28 12:43:37 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/304673003/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/304673003/diff/60001/Source/platform/heap/Heap.cpp#newcode1684 Source/platform/heap/Heap.cpp:1684: blink::Platform::current()->histogramEnumeration("BlinkGC.CollectGarbage", WTF::currentTimeMS() - timeStamp, 30000); You shouldn't use a ...
6 years, 6 months ago (2014-05-28 12:53:28 UTC) #9
haraken
Thanks for quick reivew! Updated the CL. https://codereview.chromium.org/304673003/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/304673003/diff/60001/Source/platform/heap/Heap.cpp#newcode1684 Source/platform/heap/Heap.cpp:1684: blink::Platform::current()->histogramEnumeration("BlinkGC.CollectGarbage", WTF::currentTimeMS() ...
6 years, 6 months ago (2014-05-28 13:31:41 UTC) #10
Alexei Svitkine (slow)
lgtm
6 years, 6 months ago (2014-05-28 19:27:34 UTC) #11
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 6 months ago (2014-05-28 23:14:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/304673003/70001
6 years, 6 months ago (2014-05-28 23:15:05 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-05-29 00:32:57 UTC) #14
Message was sent while issue was closed.
Change committed as 175016

Powered by Google App Engine
This is Rietveld 408576698