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

Issue 2863053002: Extensions: Add metrics to distinguish between the different kinds of declarative API function call… (Closed)

Created:
3 years, 7 months ago by karandeepb
Modified:
3 years, 7 months ago
Reviewers:
lazyboy, Ilya Sherman
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Add metrics to distinguish between the different kinds of declarative API function calls. Currently the metrics recorded by the Extensions.FunctionCalls histogram for the add/remove/get rules declarative extension functions do not distinguish between the declarativeContent and the declarativeWebRequest APIs. This CL adds a new histogram Extensions.DeclarativeAPICallType to distinguish between the calls to the two APIs. Additionaly, to achieve more granular metrics, the declarative web request API usage by webviews is considered separately. This should help us gather data regarding how often the declarative web request API is used and to decide a future course of action for the API once Declarative Net Request is launched. BUG=696822 Review-Url: https://codereview.chromium.org/2863053002 Cr-Commit-Position: refs/heads/master@{#469860} Committed: https://chromium.googlesource.com/chromium/src/+/a641d5e814782a12dd261b234b761be85b734175

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 21

Patch Set 3 : Bot failures + nits. #

Patch Set 4 : Address comments. #

Total comments: 6

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -1 line) Patch
M extensions/browser/api/declarative/declarative_api.h View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M extensions/browser/api/declarative/declarative_api.cc View 1 2 3 4 6 chunks +113 lines, -1 line 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
karandeepb
PTAL Istiaque.
3 years, 7 months ago (2017-05-05 04:44:34 UTC) #4
karandeepb
Seems there are some bot failures. Please hold off the review Istiaque. Thanks.
3 years, 7 months ago (2017-05-05 18:36:54 UTC) #7
karandeepb
PTAL Istiaque. https://codereview.chromium.org/2863053002/diff/20001/extensions/browser/api/declarative/declarative_api.cc File extensions/browser/api/declarative/declarative_api.cc (right): https://codereview.chromium.org/2863053002/diff/20001/extensions/browser/api/declarative/declarative_api.cc#newcode51 extensions/browser/api/declarative/declarative_api.cc:51: DECLARATIVE_WEB_REQUEST_WEBVIEW, These are the 3 event name ...
3 years, 7 months ago (2017-05-05 20:23:24 UTC) #9
lazyboy
I had some comments sitting as drafts in a previous a patch set, sending them ...
3 years, 7 months ago (2017-05-05 21:07:42 UTC) #10
karandeepb
PTAL Istiaque. https://codereview.chromium.org/2863053002/diff/20001/extensions/browser/api/declarative/declarative_api.cc File extensions/browser/api/declarative/declarative_api.cc (right): https://codereview.chromium.org/2863053002/diff/20001/extensions/browser/api/declarative/declarative_api.cc#newcode41 extensions/browser/api/declarative/declarative_api.cc:41: constexpr char kDeclarativeContentPrefix[] = "declarativeContent"; On 2017/05/05 ...
3 years, 7 months ago (2017-05-05 22:33:43 UTC) #12
lazyboy
declarative_api.* LGTM with nits. I'd be interested to know isherman's thoughts about https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc#newcode179 https://codereview.chromium.org/2863053002/diff/20001/extensions/browser/api/declarative/declarative_api.cc File ...
3 years, 7 months ago (2017-05-05 23:11:16 UTC) #13
karandeepb
Thanks Istiaque. +isherman@ for metrics review. Also please see Istiaque's previous comment. And is there ...
3 years, 7 months ago (2017-05-05 23:35:05 UTC) #16
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc File extensions/browser/api/declarative/declarative_api.cc (right): https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc#newcode179 extensions/browser/api/declarative/declarative_api.cc:179: RecordUMA(event_name); On 2017/05/05 23:11:16, lazyboy wrote: > ...
3 years, 7 months ago (2017-05-05 23:45:15 UTC) #17
karandeepb
On 2017/05/05 23:45:15, Ilya Sherman wrote: > Metrics LGTM > > https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc > File extensions/browser/api/declarative/declarative_api.cc ...
3 years, 7 months ago (2017-05-05 23:50:15 UTC) #18
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/2863053002/120001
3 years, 7 months ago (2017-05-05 23:52:22 UTC) #21
lazyboy
still lgtm. https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc File extensions/browser/api/declarative/declarative_api.cc (right): https://codereview.chromium.org/2863053002/diff/80001/extensions/browser/api/declarative/declarative_api.cc#newcode179 extensions/browser/api/declarative/declarative_api.cc:179: RecordUMA(event_name); On 2017/05/05 23:45:15, Ilya Sherman wrote: ...
3 years, 7 months ago (2017-05-05 23:59:13 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 19:01:26 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/a641d5e814782a12dd261b234b76...

Powered by Google App Engine
This is Rietveld 408576698