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

Issue 1474213002: [PartitionAlloc] Annotate common Blink types for heap profiling (Closed)

Created:
5 years ago by Ruud van Asseldonk
Modified:
5 years ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, Mads Ager (chromium), blink-reviews-style_chromium.org, blink-reviews-css, sof, eae+blinkwatch, Mikhail, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, blink-reviews, loading-reviews+fetch_chromium.org, blink-reviews-wtf_chromium.org, Nate Chapin, kouhei+heap_chromium.org, oilpan-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@ctti
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[PartitionAlloc] Annotate common Blink types for heap profiling This annotates a few common types in Blink and WTF to unconditionally provide type information. This will enable getting type info from the heap profiler even in official builds, albeit with less detail. It will not be possible to get the long tail in official builds. Depending on the page, the annotated types can make up 30 to 70 percent of the PartitionAlloc heap. The types annotated are: - char - blink::CSSSelector - blink::CSSValue - blink::ImmutableStylePropertySet - blink::InvalidationSet - blink::Node - blink::Resource - blink::SharedBuffer - blink::StyleRule - WTF::StringImpl Type info about |char| is available only when allocated via variants of |PartitionAllocator::allocateVectorBacking|. This is a large portion of all char's but not 100%. The annotated types are the ten types that on average make up the largest portion of the PartitionAlloc heap, and which can be annotated easily. Types like |WTF::StringImpl*| are in the top ten too, but most of these are not stored in vector backing. This is part of the heap profiler in chrome://tracing. BUG=524631 Committed: https://crrev.com/ba2eebd19776527566625c066495dd31565b0002 Cr-Commit-Position: refs/heads/master@{#362687}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundancy from macro #

Total comments: 2

Patch Set 3 : Document macros #

Patch Set 4 : Mark template specialisations as WTF_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -15 lines) Patch
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StyleRule.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/SharedBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/Handle.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/Allocator.h View 1 2 3 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAllocator.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAllocator.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Ruud van Asseldonk
5 years ago (2015-11-26 20:17:07 UTC) #2
haraken
https://codereview.chromium.org/1474213002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.h File third_party/WebKit/Source/core/css/CSSSelector.h (right): https://codereview.chromium.org/1474213002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.h#newcode78 third_party/WebKit/Source/core/css/CSSSelector.h:78: USING_FAST_MALLOC_WITH_TYPE_NAME(CSSSelector, "blink::CSSSelector"); It looks redundant to write "CSSSelector" twice ...
5 years ago (2015-11-27 00:22:29 UTC) #3
Ruud van Asseldonk
https://codereview.chromium.org/1474213002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.h File third_party/WebKit/Source/core/css/CSSSelector.h (right): https://codereview.chromium.org/1474213002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.h#newcode78 third_party/WebKit/Source/core/css/CSSSelector.h:78: USING_FAST_MALLOC_WITH_TYPE_NAME(CSSSelector, "blink::CSSSelector"); On 2015/11/27 00:22:28, haraken wrote: > > ...
5 years ago (2015-11-27 10:41:44 UTC) #4
haraken
On 2015/11/27 10:41:44, Ruud van Asseldonk wrote: > https://codereview.chromium.org/1474213002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.h > File third_party/WebKit/Source/core/css/CSSSelector.h (right): > > ...
5 years ago (2015-11-27 10:46:26 UTC) #5
Ruud van Asseldonk
On 2015/11/27 10:46:26, haraken wrote: > On 2015/11/27 10:41:44, Ruud van Asseldonk wrote: > > ...
5 years ago (2015-11-27 12:13:46 UTC) #6
haraken
On 2015/11/27 12:13:46, Ruud van Asseldonk wrote: > On 2015/11/27 10:46:26, haraken wrote: > > ...
5 years ago (2015-11-27 12:15:44 UTC) #7
Ruud van Asseldonk
On 2015/11/27 12:15:44, haraken wrote: > On 2015/11/27 12:13:46, Ruud van Asseldonk wrote: > > ...
5 years ago (2015-11-27 12:28:56 UTC) #8
haraken
Thanks for the clarification! LGTM https://codereview.chromium.org/1474213002/diff/20001/third_party/WebKit/Source/wtf/Allocator.h File third_party/WebKit/Source/wtf/Allocator.h (right): https://codereview.chromium.org/1474213002/diff/20001/third_party/WebKit/Source/wtf/Allocator.h#newcode134 third_party/WebKit/Source/wtf/Allocator.h:134: #define USING_FAST_MALLOC_WITH_TYPE_NAME(type) USING_FAST_MALLOC_INTERNAL(type, #type) ...
5 years ago (2015-11-27 15:36:10 UTC) #9
Ruud van Asseldonk
https://codereview.chromium.org/1474213002/diff/20001/third_party/WebKit/Source/wtf/Allocator.h File third_party/WebKit/Source/wtf/Allocator.h (right): https://codereview.chromium.org/1474213002/diff/20001/third_party/WebKit/Source/wtf/Allocator.h#newcode134 third_party/WebKit/Source/wtf/Allocator.h:134: #define USING_FAST_MALLOC_WITH_TYPE_NAME(type) USING_FAST_MALLOC_INTERNAL(type, #type) On 2015/11/27 15:36:10, haraken wrote: ...
5 years ago (2015-11-27 16:31:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474213002/60001
5 years ago (2015-12-02 11:56:34 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-02 12:22:24 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-02 12:23:12 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba2eebd19776527566625c066495dd31565b0002
Cr-Commit-Position: refs/heads/master@{#362687}

Powered by Google App Engine
This is Rietveld 408576698