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

Issue 1652983005: Remove Enumeration Histograms from the Blink Platform API. (Closed)

Created:
4 years, 10 months ago by dtapuska
Modified:
4 years, 10 months ago
CC:
Mads Ager (chromium), ajuma+watch-canvas_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-wtf_chromium.org, Rik, chromium-reviews, cmumford, danakj+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, f(malita), fs, gavinp+prerender_chromium.org, gavinp+loader_chromium.org, gasubic, jam, Nate Chapin, jbroman, jchaffraix+rendering, jsbell+idb_chromium.org, Justin Novosad, kinuko+watch, kouhei+heap_chromium.org, leviw+renderwatch, loading-reviews+fetch_chromium.org, Mikhail, mlamouri+watch-blink_chromium.org, oilpan-reviews, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, Peter Beverloo, philipj_slow, rwlbuis, Stephen Chennney, nessy, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, vcarbune.chromium, vmpstr+blinkwatch_chromium.org, yhirano+watch_chromium.org, Yoav Weiss, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master_blink_histograms_5a
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Enumeration Histograms from the Blink Platform API. Use the new API for logging enumeration histograms. BUG=583012 Committed: https://crrev.com/23324d97abe98968829056934e544e64237d0acd Cr-Commit-Position: refs/heads/master@{#373922}

Patch Set 1 #

Patch Set 2 : Fix misplaced bracket on android #

Total comments: 6

Patch Set 3 : Fix haraken's comments in patch set 2 #

Patch Set 4 : Apply similar changes from custom count histograms change to this change #

Total comments: 4

Patch Set 5 : Rebase two new histograms were added today #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -163 lines) Patch
M content/child/blink_platform_impl.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 10 chunks +42 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ViewportDescription.cpp View 1 3 chunks +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 2 chunks +32 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 3 chunks +3 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/modules/cachestorage/Cache.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp View 1 2 3 5 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp View 1 2 3 8 chunks +26 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasMetrics.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.cpp View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/text/CompressibleString.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 2 3 3 chunks +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPageImportanceSignals.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/Partitions.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/Partitions.cpp View 1 2 3 chunks +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/wtf/WTF.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 59 (12 generated)
dtapuska
Similar to https://codereview.chromium.org/1659053002/ I hope that I have used DEFINE_STATIC_LOCAL and DEFINE_THREAD_SAFE_STATIC_LOCAL in the correct ...
4 years, 10 months ago (2016-02-02 20:24:48 UTC) #4
haraken
LGTM I'm not 100% if you're using DEFINE_STATIC_LOCAL and DEFINE_THREAD_SAFE_LOCAL correctly, but if you misuse ...
4 years, 10 months ago (2016-02-03 00:37:57 UTC) #5
Charlie Reis
content/ LGTM.
4 years, 10 months ago (2016-02-03 00:52:26 UTC) #6
dtapuska
https://codereview.chromium.org/1652983005/diff/20001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1652983005/diff/20001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode92 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:92: DEFINE_SINGLE_RESOURCE_HISTOGRAM(prefix, Manifest) \ On 2016/02/03 00:37:57, haraken wrote: > ...
4 years, 10 months ago (2016-02-03 14:43:11 UTC) #7
haraken
LGTM
4 years, 10 months ago (2016-02-03 15:18:53 UTC) #8
dtapuska
On 2016/02/03 15:18:53, haraken wrote: > LGTM In order to land still need dependent change ...
4 years, 10 months ago (2016-02-03 15:22:07 UTC) #9
haraken
On 2016/02/03 15:22:07, dtapuska wrote: > On 2016/02/03 15:18:53, haraken wrote: > > LGTM > ...
4 years, 10 months ago (2016-02-03 15:29:36 UTC) #10
esprehn
Lgtm with a few comments. Btw I think we might want to move the Histograms ...
4 years, 10 months ago (2016-02-05 19:09:07 UTC) #11
dtapuska
https://codereview.chromium.org/1652983005/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/1652983005/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp#newcode32 third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:32: DEFINE_STATIC_LOCAL(EnumerationHistogram, parseBlockingHistogram, ("WebCore.Scripts.ParsingBlocking.StartedStreaming", 2)); On 2016/02/05 19:09:07, esprehn wrote: ...
4 years, 10 months ago (2016-02-05 19:25:33 UTC) #12
esprehn
On 2016/02/05 at 19:25:33, dtapuska wrote: > ... > https://codereview.chromium.org/1652983005/diff/60001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode573 > third_party/WebKit/Source/core/frame/UseCounter.cpp:573: DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserver", ...
4 years, 10 months ago (2016-02-05 19:30:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652983005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652983005/60001
4 years, 10 months ago (2016-02-05 19:44:03 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/89645) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-05 20:00:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652983005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652983005/80001
4 years, 10 months ago (2016-02-05 20:44:28 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-05 22:07:42 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/23324d97abe98968829056934e544e64237d0acd Cr-Commit-Position: refs/heads/master@{#373922}
4 years, 10 months ago (2016-02-05 22:09:13 UTC) #25
sof
i'm unconvinced if this represents an improvement; a considerable number of extra static singletons (thread ...
4 years, 10 months ago (2016-02-07 20:14:20 UTC) #27
haraken
On 2016/02/07 20:14:20, sof wrote: > i'm unconvinced if this represents an improvement; a considerable ...
4 years, 10 months ago (2016-02-07 23:47:25 UTC) #28
esprehn
It's definitely better to do this than allocate 2 string copies, take an atomic lock, ...
4 years, 10 months ago (2016-02-08 03:47:01 UTC) #29
esprehn
It's definitely better to do this than allocate 2 string copies, take an atomic lock, ...
4 years, 10 months ago (2016-02-08 03:48:10 UTC) #30
sof
On 2016/02/07 23:47:25, haraken wrote: > On 2016/02/07 20:14:20, sof wrote: > > i'm unconvinced ...
4 years, 10 months ago (2016-02-08 06:09:37 UTC) #31
haraken
On 2016/02/08 06:09:37, sof wrote: > On 2016/02/07 23:47:25, haraken wrote: > > On 2016/02/07 ...
4 years, 10 months ago (2016-02-08 06:19:21 UTC) #32
sof
On 2016/02/08 06:19:21, haraken wrote: > On 2016/02/08 06:09:37, sof wrote: > > On 2016/02/07 ...
4 years, 10 months ago (2016-02-08 06:29:56 UTC) #33
haraken
On 2016/02/08 06:29:56, sof wrote: > On 2016/02/08 06:19:21, haraken wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 06:42:21 UTC) #34
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1652983005/diff/80001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1652983005/diff/80001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1209 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:1209: DEFINE_STATIC_LOCAL(EnumerationHistogram, headerValueCategoryHistogram, ("Blink.XHR.setRequestHeader.HeaderValueCategoryInRFC7230", HeaderValueCategoryByRFC7230End)); On 2016/02/07 at 20:14:19, sof ...
4 years, 10 months ago (2016-02-08 08:38:21 UTC) #36
esprehn
The histogram library is in base, AtomicString is in WTF, you can't use it like ...
4 years, 10 months ago (2016-02-08 10:01:49 UTC) #37
esprehn
The histogram library is in base, AtomicString is in WTF, you can't use it like ...
4 years, 10 months ago (2016-02-08 10:04:01 UTC) #38
kinuko
I have a feeling that the new histogram code is less readable / thread-safe version ...
4 years, 10 months ago (2016-02-08 12:31:32 UTC) #39
dtapuska
On 2016/02/08 12:31:32, kinuko wrote: > I have a feeling that the new histogram code ...
4 years, 10 months ago (2016-02-08 13:27:04 UTC) #40
kinuko
On 2016/02/08 13:27:04, dtapuska wrote: > On 2016/02/08 12:31:32, kinuko wrote: > > I have ...
4 years, 10 months ago (2016-02-08 15:04:41 UTC) #41
dtapuska
On 2016/02/08 15:04:41, kinuko wrote: > On 2016/02/08 13:27:04, dtapuska wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 15:21:58 UTC) #42
dtapuska
On 2016/02/08 15:04:41, kinuko wrote: > On 2016/02/08 13:27:04, dtapuska wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 15:22:04 UTC) #43
esprehn
I'd prefer we didn't add more macros, this makes it clear what this does, and ...
4 years, 10 months ago (2016-02-08 19:40:33 UTC) #44
esprehn
I'd prefer we didn't add more macros, this makes it clear what this does, and ...
4 years, 10 months ago (2016-02-08 19:41:53 UTC) #45
haraken
On 2016/02/08 19:41:53, esprehn wrote: > I'd prefer we didn't add more macros, this makes ...
4 years, 10 months ago (2016-02-08 23:59:46 UTC) #46
kinuko
On 2016/02/08 23:59:46, haraken wrote: > On 2016/02/08 19:41:53, esprehn wrote: > > I'd prefer ...
4 years, 10 months ago (2016-02-09 02:04:20 UTC) #47
haraken
On 2016/02/09 02:04:20, kinuko wrote: > On 2016/02/08 23:59:46, haraken wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-09 04:52:21 UTC) #48
esprehn
I'd rather err on the side of speed here, Blink's workloads grow unbounded with the ...
4 years, 10 months ago (2016-02-09 04:59:30 UTC) #49
kinuko
On 2016/02/09 04:59:30, esprehn wrote: > I've almost never looked at the implementation of DEFINE_STATIC_LOCAL, ...
4 years, 10 months ago (2016-02-09 06:47:02 UTC) #50
esprehn
On 2016/02/09 at 06:47:02, kinuko wrote: > On 2016/02/09 04:59:30, esprehn wrote: > > I've ...
4 years, 10 months ago (2016-02-09 06:57:29 UTC) #51
haraken
On 2016/02/09 06:57:29, esprehn wrote: > On 2016/02/09 at 06:47:02, kinuko wrote: > > On ...
4 years, 10 months ago (2016-02-09 07:32:02 UTC) #52
sof
On 2016/02/09 07:32:02, haraken wrote: > On 2016/02/09 06:57:29, esprehn wrote: > > On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 18:49:18 UTC) #53
esprehn
On 2016/02/09 at 18:49:18, sigbjornf wrote: > ... > > I haven't seen this mentioned ...
4 years, 10 months ago (2016-02-09 19:09:07 UTC) #54
haraken
On 2016/02/09 19:09:07, esprehn wrote: > On 2016/02/09 at 18:49:18, sigbjornf wrote: > > ...
4 years, 10 months ago (2016-02-10 00:20:40 UTC) #55
esprehn
On 2016/02/10 at 00:20:40, haraken wrote: > On 2016/02/09 19:09:07, esprehn wrote: > > On ...
4 years, 10 months ago (2016-02-10 00:27:23 UTC) #56
haraken
On 2016/02/10 00:27:23, esprehn wrote: > On 2016/02/10 at 00:20:40, haraken wrote: > > On ...
4 years, 10 months ago (2016-02-10 00:52:02 UTC) #57
kinuko
On 2016/02/10 00:52:02, haraken wrote: > On 2016/02/10 00:27:23, esprehn wrote: > > On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 01:36:06 UTC) #58
dtapuska
4 years, 10 months ago (2016-02-10 01:42:00 UTC) #59
Message was sent while issue was closed.
On 2016/02/10 01:36:06, kinuko wrote:
> On 2016/02/10 00:52:02, haraken wrote:
> > On 2016/02/10 00:27:23, esprehn wrote:
> > > On 2016/02/10 at 00:20:40, haraken wrote:
> > > > On 2016/02/09 19:09:07, esprehn wrote:
> > > > > On 2016/02/09 at 18:49:18, sigbjornf wrote:
> > > > > ...
> > > > 
> > > > Maybe a good balancing point would be making UMA_HISTOGRAM macros by
> default
> > &
> > > using the nastier but faster version in a couple of performance-sensitive
> > places
> > > like Animation cases?
> > > 
> > > sgtm, post a patch! Perhaps dtapuska@ is willing to be a hero again? :)
> > 
> > I'm secretly hoping so :)
> 
> SGTM++

Shouldn't be that hard I hope; a couple of sed commands should do it. Just have
to find the time to do it..

Powered by Google App Engine
This is Rietveld 408576698