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

Issue 2140513002: Add UMAs for SharedBuffer::lock()/unlock() (Closed)

Created:
4 years, 5 months ago by hiroshige
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMAs for SharedBuffer::lock()/unlock() If SharedBuffer is rarely lock()ed successfully after its unlock(), we can remove SharedBuffer::unlock() without significant performance regressions. To evaluate this assumption, this CL adds UMAs for SharedBuffer::lock() and unlock() counts. This CL also fixes ResourceType enum names in histograms.xml. ResourceType enum is introduced in 2013 and left unmodified since then, but it is now inconsistent with C++'s Resource::Type values. Because ResourceType enum has been unused recently (it is referenced in histograms.xml only from WebCore.ResourceFetcher.ResourceTypeUponCacheHit, which doesn't have C++ counterpart nor UMA reports at least since 2016/01), updating the ResourceType enum values in histograms.xml looks safe. BUG=603791 Committed: https://crrev.com/48dcde03af18a3065e0e89b2de1e40df3e78af67 Cr-Commit-Position: refs/heads/master@{#405956}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Rebase. #

Patch Set 3 : Comments #

Patch Set 4 : Comments #

Total comments: 4

Patch Set 5 : Obsolete WebCore.ResourceFetcher.ResourceTypeUponCacheHit #

Total comments: 4

Patch Set 6 : Reflect comments for histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -2 lines) Patch
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 3 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (27 generated)
hiroshige
PTAL. mkwst@ as a core/fetch OWNER isherman@ as histogram's OWNER
4 years, 5 months ago (2016-07-11 07:24:15 UTC) #5
bashi
non-owner lgtm. Thanks for adding this! Help me understand: (total # of unlock) - (# ...
4 years, 5 months ago (2016-07-11 08:02:27 UTC) #6
Mike West
LGTM, but I agree that the name is a little confusing.
4 years, 5 months ago (2016-07-11 08:07:39 UTC) #7
bashi
On 2016/07/11 08:02:27, bashi1 wrote: > non-owner lgtm. Thanks for adding this! > > Help ...
4 years, 5 months ago (2016-07-11 08:08:57 UTC) #8
hiroshige
> (total # of unlock) - (# of success lock + # of failed lock) ...
4 years, 5 months ago (2016-07-11 08:15:58 UTC) #9
bashi
https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode567 third_party/WebKit/Source/core/fetch/Resource.cpp:567: DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, unlockHistogram, new EnumerationHistogram("Blink.SharedBuffer.Unlock", Manifest + 1)); On 2016/07/11 ...
4 years, 5 months ago (2016-07-11 08:23:22 UTC) #10
Ilya Sherman
https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode567 third_party/WebKit/Source/core/fetch/Resource.cpp:567: DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, unlockHistogram, new EnumerationHistogram("Blink.SharedBuffer.Unlock", Manifest + 1)); Please document ...
4 years, 5 months ago (2016-07-11 19:28:34 UTC) #13
hiroshige
https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2140513002/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode567 third_party/WebKit/Source/core/fetch/Resource.cpp:567: DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, unlockHistogram, new EnumerationHistogram("Blink.SharedBuffer.Unlock", Manifest + 1)); On 2016/07/11 ...
4 years, 5 months ago (2016-07-12 10:06:29 UTC) #19
hiroshige
+clamy@ for https://codereview.chromium.org/2140513002/diff/1/tools/metrics/histograms/histograms.xml#newcode88316 Since when WebCore.ResourceFetcher.ResourceTypeUponCacheHit has been unused?
4 years, 5 months ago (2016-07-12 10:08:33 UTC) #22
Ilya Sherman
Thanks for updating the CL description. Could you please also update the bug, since that ...
4 years, 5 months ago (2016-07-12 21:23:17 UTC) #25
hiroshige
https://codereview.chromium.org/2140513002/diff/60001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2140513002/diff/60001/third_party/WebKit/Source/core/fetch/Resource.h#newcode61 third_party/WebKit/Source/core/fetch/Resource.h:61: // existing |Type|. When adding a new |Type|, append ...
4 years, 5 months ago (2016-07-15 07:47:06 UTC) #31
hiroshige
> Could you please also update the bug, > since that is where the histogram ...
4 years, 5 months ago (2016-07-15 10:44:24 UTC) #34
Ilya Sherman
LGTM % a final couple of nits. Thanks! https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml#newcode62982 tools/metrics/histograms/histograms.xml:62982: + ...
4 years, 5 months ago (2016-07-15 21:07:27 UTC) #35
hiroshige
https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml#newcode62982 tools/metrics/histograms/histograms.xml:62982: + been changed over time. On 2016/07/15 21:07:27, Ilya ...
4 years, 5 months ago (2016-07-17 13:45:51 UTC) #36
hiroshige
https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2140513002/diff/120001/tools/metrics/histograms/histograms.xml#newcode62982 tools/metrics/histograms/histograms.xml:62982: + been changed over time. On 2016/07/15 21:07:27, Ilya ...
4 years, 5 months ago (2016-07-17 13:46:14 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2140513002/160001
4 years, 5 months ago (2016-07-17 13:48:14 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 5 months ago (2016-07-17 15:10:01 UTC) #43
commit-bot: I haz the power
4 years, 5 months ago (2016-07-17 15:11:47 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/48dcde03af18a3065e0e89b2de1e40df3e78af67
Cr-Commit-Position: refs/heads/master@{#405956}

Powered by Google App Engine
This is Rietveld 408576698