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

Issue 141523010: Pepper: Log in UMA when an interface is used. (Closed)

Created:
6 years, 10 months ago by teravest
Modified:
6 years, 10 months ago
CC:
chromium-reviews, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Pepper: Log in UMA when an interface is used. We'd like to know what versions of our interfaces are used by end users. This change logs usage of PPB interfaces for out-of-process plugins the first time that get_interface<>() is called for a given interface and version. I tested this change by loading some plugin examples and checking the about:histograms page. BUG=111542 R=asvitkine@chromium.org, jschuh@chromium.org, yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249007

Patch Set 1 #

Total comments: 1

Patch Set 2 : XML fix #

Patch Set 3 : XML description again #

Total comments: 3

Patch Set 4 : Add histogram hash values. #

Total comments: 2

Patch Set 5 : Fixes for yzshen. #

Patch Set 6 : Fixes for yzshen #

Patch Set 7 : Retry upload #

Total comments: 3

Patch Set 8 : #

Total comments: 2

Patch Set 9 : Testing and comments. #

Total comments: 1

Patch Set 10 : hash method #

Patch Set 11 : #

Patch Set 12 : Rebased again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -13 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M ppapi/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +34 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.h View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -3 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 4 chunks +21 lines, -3 lines 0 comments Download
M ppapi/proxy/interface_list_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
A ppapi/tools/pepper_hash_for_uma.cc View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A + ppapi/tools/ppapi_tools.gyp View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +155 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
teravest
6 years, 10 months ago (2014-01-30 18:01:57 UTC) #1
yzshen1
LGTM with a nit. Thanks! https://codereview.chromium.org/141523010/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/141523010/diff/1/tools/metrics/histograms/histograms.xml#newcode12717 tools/metrics/histograms/histograms.xml:12717: + The number of ...
6 years, 10 months ago (2014-01-30 18:15:45 UTC) #2
teravest
Changed to: The number of times an out-of-process plugin has loaded a PPB interface version ...
6 years, 10 months ago (2014-01-30 18:22:19 UTC) #3
teravest
+jar for tools/metrics/histograms/histograms.xml +jschuh for ppapi/proxy/ppapi_messages.h
6 years, 10 months ago (2014-01-30 18:23:19 UTC) #4
yzshen
It may be easier to understand: The number of plugin processes that has loaded a ...
6 years, 10 months ago (2014-01-30 18:25:06 UTC) #5
teravest
On Thu, Jan 30, 2014 at 11:25 AM, Yuzhu Shen <yzshen@google.com> wrote: > It may ...
6 years, 10 months ago (2014-01-30 18:27:38 UTC) #6
teravest
-jar +asvitkine for tools/metrics/...
6 years, 10 months ago (2014-01-30 21:24:58 UTC) #7
jschuh
ipc security lgtm.
6 years, 10 months ago (2014-01-31 13:17:24 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc File ppapi/proxy/interface_list.cc (right): https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc#newcode331 ppapi/proxy/interface_list.cc:331: int hash = bit_cast<int>(base::Hash(name.c_str(), name.size())); What is |name| in ...
6 years, 10 months ago (2014-01-31 17:49:04 UTC) #9
teravest
https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc File ppapi/proxy/interface_list.cc (right): https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc#newcode331 ppapi/proxy/interface_list.cc:331: int hash = bit_cast<int>(base::Hash(name.c_str(), name.size())); On 2014/01/31 17:49:04, Alexei ...
6 years, 10 months ago (2014-02-03 15:36:54 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc File ppapi/proxy/interface_list.cc (right): https://codereview.chromium.org/141523010/diff/30001/ppapi/proxy/interface_list.cc#newcode331 ppapi/proxy/interface_list.cc:331: int hash = bit_cast<int>(base::Hash(name.c_str(), name.size())); On 2014/02/03 15:36:55, teravest ...
6 years, 10 months ago (2014-02-03 19:25:10 UTC) #11
teravest
I'll give that a shot. Is the syntax for sparse histograms the same as for ...
6 years, 10 months ago (2014-02-03 20:13:10 UTC) #12
Alexei Svitkine (slow)
Yes, the syntax is the same. On Mon, Feb 3, 2014 at 3:12 PM, Justin ...
6 years, 10 months ago (2014-02-03 20:14:35 UTC) #13
teravest
Alexei, Hash values are provided in histograms.xml now. I tested locally to make sure they ...
6 years, 10 months ago (2014-02-03 23:12:21 UTC) #14
yzshen1
https://codereview.chromium.org/141523010/diff/120001/ppapi/thunk/interfaces_ppb_public_stable.h File ppapi/thunk/interfaces_ppb_public_stable.h (right): https://codereview.chromium.org/141523010/diff/120001/ppapi/thunk/interfaces_ppb_public_stable.h#newcode15 ppapi/thunk/interfaces_ppb_public_stable.h:15: // Use the 'pepper_hash_for_uma' tool in ppapi/tools to determine ...
6 years, 10 months ago (2014-02-03 23:28:55 UTC) #15
teravest
On Mon, Feb 3, 2014 at 4:28 PM, <yzshen@chromium.org> wrote: > > https://codereview.chromium.org/141523010/diff/120001/ppapi/thunk/interfaces_ppb_public_stable.h > File ...
6 years, 10 months ago (2014-02-04 15:26:36 UTC) #16
yzshen1
> https://codereview.chromium.org/141523010/diff/120001/ppapi/thunk/interfaces_ppb_public_stable.h > > File ppapi/thunk/interfaces_ppb_public_stable.h (right): > > > > > https://codereview.chromium.org/141523010/diff/120001/ppapi/thunk/interfaces_ppb_public_stable.h#newcode15 > > ...
6 years, 10 months ago (2014-02-04 17:33:08 UTC) #17
Alexei Svitkine (slow)
Thanks, I think this will result in much more meaningful values on the dashboard. A ...
6 years, 10 months ago (2014-02-04 17:43:42 UTC) #18
dmichael (off chromium)
https://codereview.chromium.org/141523010/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/141523010/diff/280001/tools/metrics/histograms/histograms.xml#newcode29035 tools/metrics/histograms/histograms.xml:29035: + <int value="-2147196937" label="PPB_FlashFullscreen;0.1"/> On 2014/02/04 17:43:42, Alexei Svitkine ...
6 years, 10 months ago (2014-02-04 17:50:32 UTC) #19
Alexei Svitkine (slow)
On 2014/02/04 17:50:32, dmichael wrote: > https://codereview.chromium.org/141523010/diff/280001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/141523010/diff/280001/tools/metrics/histograms/histograms.xml#newcode29035 > ...
6 years, 10 months ago (2014-02-04 17:58:39 UTC) #20
teravest
On Tue, Feb 4, 2014 at 10:43 AM, <asvitkine@chromium.org> wrote: > Thanks, I think this ...
6 years, 10 months ago (2014-02-04 18:26:42 UTC) #21
Alexei Svitkine (slow)
https://codereview.chromium.org/141523010/diff/230013/ppapi/proxy/interface_list.cc File ppapi/proxy/interface_list.cc (right): https://codereview.chromium.org/141523010/diff/230013/ppapi/proxy/interface_list.cc#newcode334 ppapi/proxy/interface_list.cc:334: int hash = static_cast<int>(data & 0x7fffffff); Is base::Hash() guaranteed ...
6 years, 10 months ago (2014-02-04 18:30:42 UTC) #22
teravest
On Tue, Feb 4, 2014 at 11:30 AM, <asvitkine@chromium.org> wrote: > > https://codereview.chromium.org/141523010/diff/230013/ppapi/proxy/interface_list.cc > File ...
6 years, 10 months ago (2014-02-04 18:50:07 UTC) #23
Alexei Svitkine (slow)
LGTM % one last comment Thanks! https://codereview.chromium.org/141523010/diff/470001/ppapi/proxy/interface_list_unittest.cc File ppapi/proxy/interface_list_unittest.cc (right): https://codereview.chromium.org/141523010/diff/470001/ppapi/proxy/interface_list_unittest.cc#newcode71 ppapi/proxy/interface_list_unittest.cc:71: int hash = ...
6 years, 10 months ago (2014-02-04 18:53:30 UTC) #24
teravest
On Tue, Feb 4, 2014 at 11:53 AM, <asvitkine@chromium.org> wrote: > LGTM % one last ...
6 years, 10 months ago (2014-02-04 19:01:38 UTC) #25
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 10 months ago (2014-02-04 19:17:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/141523010/520001
6 years, 10 months ago (2014-02-04 19:23:43 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=223622
6 years, 10 months ago (2014-02-04 20:23:58 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/141523010/520001
6 years, 10 months ago (2014-02-04 20:26:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/141523010/520001
6 years, 10 months ago (2014-02-05 00:50:43 UTC) #30
teravest
6 years, 10 months ago (2014-02-05 15:34:27 UTC) #31
Message was sent while issue was closed.
Committed patchset #12 manually as r249007 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698