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

Issue 2290733002: Add new UseCounter metric (Closed)

Created:
4 years, 3 months ago by Rick Byers
Modified:
4 years, 3 months ago
Reviewers:
dtapuska, Nico, rkaplow
CC:
chromium-reviews, blink-reviews, asvitkine+watch_chromium.org, pdr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new UseCounter metric Adds a new UMA histogram "WebCore.UseCounter_TEST" which fixes the issue with data loss on fast shutdown while temporarily preseving the original semantics in the legacy "WebCore.FeatureObserver" histogram. Also overhauls the tests to look directly at the histograms. Note that the semantics of the new UseCounter are still under flux and being validated, hence the '_TEST' suffix in the histogram name. Once validated it'll be renamed to simply WebCore.UseCounter and we will expect to never change the semantics of the histogram again (without rename). BUG=597963 Committed: https://crrev.com/631a26b68f615f8282efba7ded2a6f4fac236482 Cr-Commit-Position: refs/heads/master@{#417957}

Patch Set 1 #

Patch Set 2 : Overhaul tests #

Total comments: 12

Patch Set 3 : CR feedback #

Patch Set 4 : Make diff prettier #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -120 lines) Patch
M third_party/WebKit/Source/core/frame/PRESUBMIT.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 2 chunks +19 lines, -5 lines 1 comment Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 8 chunks +116 lines, -67 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounterTest.cpp View 1 2 1 chunk +130 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/HistogramTester.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/HistogramTester.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 4 chunks +61 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (12 generated)
Rick Byers
Hey Dave, This is the refactoring you initially looked at as part of https://codereview.chromium.org/2023903003/. PTAL. ...
4 years, 3 months ago (2016-09-09 17:58:05 UTC) #3
dtapuska
https://codereview.chromium.org/2290733002/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (left): https://codereview.chromium.org/2290733002/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp#oldcode588 third_party/WebKit/Source/core/frame/UseCounter.cpp:588: return histogram; Perhaps we should use temporary names because ...
4 years, 3 months ago (2016-09-09 18:30:19 UTC) #6
Rick Byers
https://codereview.chromium.org/2290733002/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (left): https://codereview.chromium.org/2290733002/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp#oldcode588 third_party/WebKit/Source/core/frame/UseCounter.cpp:588: return histogram; On 2016/09/09 18:30:19, dtapuska wrote: > Perhaps ...
4 years, 3 months ago (2016-09-09 19:31:37 UTC) #7
dtapuska
lgtm
4 years, 3 months ago (2016-09-09 19:39:24 UTC) #8
Rick Byers
+rkaplow for metrics OWNERS. In particular I want to make sure you're OK with using ...
4 years, 3 months ago (2016-09-09 20:22:27 UTC) #11
rkaplow
lgtm Hey, technically looks fine, although I'm still unclear why you need to set these ...
4 years, 3 months ago (2016-09-12 14:57:33 UTC) #12
Rick Byers
On 2016/09/12 14:57:33, rkaplow wrote: > lgtm > > Hey, technically looks fine, although I'm ...
4 years, 3 months ago (2016-09-12 15:15:06 UTC) #14
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/2290733002/60001
4 years, 3 months ago (2016-09-12 15:16:09 UTC) #17
rkaplow
lgtm sg, thanks for clarifying
4 years, 3 months ago (2016-09-12 15:17:36 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-12 16:57:24 UTC) #20
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/631a26b68f615f8282efba7ded2a6f4fac236482 Cr-Commit-Position: refs/heads/master@{#417957}
4 years, 3 months ago (2016-09-12 17:00:49 UTC) #22
Nico
https://codereview.chromium.org/2290733002/diff/60001/third_party/WebKit/Source/core/frame/UseCounter.h File third_party/WebKit/Source/core/frame/UseCounter.h (right): https://codereview.chromium.org/2290733002/diff/60001/third_party/WebKit/Source/core/frame/UseCounter.h#newcode1342 third_party/WebKit/Source/core/frame/UseCounter.h:1342: class LegacyCounter { this needs a CORE_EXPORT, else release ...
4 years, 3 months ago (2016-09-13 14:16:47 UTC) #24
dtapuska
4 years, 3 months ago (2016-09-13 14:30:07 UTC) #25
Message was sent while issue was closed.
On 2016/09/13 14:16:47, Nico wrote:
>
https://codereview.chromium.org/2290733002/diff/60001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/frame/UseCounter.h (right):
> 
>
https://codereview.chromium.org/2290733002/diff/60001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/frame/UseCounter.h:1342: class LegacyCounter {
> this needs a CORE_EXPORT, else release component builds won't link (at least
> with clang-cl):
> 
> FAILED: webkit_unit_tests.exe webkit_unit_tests.exe.pdb 
> E:/b/depot_tools/python276_bin/python.exe
> ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False
> link.exe /nologo /OUT:./webkit_unit_tests.exe /PDB:./webkit_unit_tests.exe.pdb
> @./webkit_unit_tests.exe.rsp
> UseCounterTest.obj : error LNK2019: unresolved external symbol "public:
__cdecl
> blink::UseCounter::LegacyCounter::~LegacyCounter(void)"
> (??1LegacyCounter@UseCounter@blink@@QEAA@XZ) referenced in function "private:
> virtual void __cdecl
> blink::UseCounterTest_RecordingFeatures_Test::TestBody(void)"
> (?TestBody@UseCounterTest_RecordingFeatures_Test@blink@@EEAAXXZ)
> ./webkit_unit_tests.exe : fatal error LNK1120: 1 unresolved externals
> 
>
https://build.chromium.org/p/chromium.fyi/builders/CrWinClang%28shared%29/bui...

Posted a patch here: https://codereview.chromium.org/2336253002/ Rick doesn't
seem to be at his desk now.

Powered by Google App Engine
This is Rietveld 408576698