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

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed)

Created:
8 years, 6 months ago by ramant (doing other things)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, MAD, jar (doing other things), jochen+watch-content_chromium.org, erikwright (departed), joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Ilya Sherman, kaiwang
Visibility:
Public.

Description

Histograms - Support histograms for Plugins, GPU and all child processes. Renderer processes also use this new method to send histograms to browser. This code is similar to the code that gets profiler data from all processes. R=jar@chromium.org,jam@chromium.org TEST=browser unit tests, interactive UI tests BUG=114013 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146394

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 46

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Total comments: 24

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1110 lines, -1185 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
A + base/metrics/histogram_flattener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +19 lines, -46 lines 0 comments Download
A base/metrics/histogram_snapshot_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +60 lines, -0 lines 0 comments Download
A + base/metrics/histogram_snapshot_manager.cc View 1 2 3 4 5 6 7 8 9 4 chunks +26 lines, -17 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +1 line, -6 lines 0 comments Download
D chrome/browser/metrics/histogram_synchronizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -180 lines 0 comments Download
D chrome/browser/metrics/histogram_synchronizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -264 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/tracking_synchronizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +0 lines, -32 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/common/metrics/histogram_sender.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -66 lines 0 comments Download
D chrome/common/metrics/histogram_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -95 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +13 lines, -9 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +1 line, -4 lines 0 comments Download
M chrome/renderer/page_load_histograms.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +6 lines, -9 lines 0 comments Download
D chrome/renderer/renderer_histogram_snapshots.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -58 lines 0 comments Download
D chrome/renderer/renderer_histogram_snapshots.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -92 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
A content/browser/histogram_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +70 lines, -0 lines 0 comments Download
A content/browser/histogram_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +112 lines, -0 lines 0 comments Download
A content/browser/histogram_internals_request_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/histogram_internals_request_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +72 lines, -0 lines 0 comments Download
A content/browser/histogram_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/histogram_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/histogram_subscriber.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +33 lines, -0 lines 0 comments Download
A + content/browser/histogram_synchronizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +69 lines, -99 lines 0 comments Download
A + content/browser/histogram_synchronizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +229 lines, -147 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +7 lines, -0 lines 0 comments Download
A content/common/child_histogram_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +65 lines, -0 lines 0 comments Download
A content/common/child_histogram_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +98 lines, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +15 lines, -3 lines 0 comments Download
M content/common/child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +7 lines, -0 lines 0 comments Download
M content/common/child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +5 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +10 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/browser/histogram_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +29 lines, -0 lines 0 comments Download
M content/public/common/content_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/common/content_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/public/renderer/render_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +5 lines, -0 lines 0 comments Download
M content/test/mock_render_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
ramant (doing other things)
Hi Jim and John Abd-El-Malek, Did the plumbing to get histograms from all renderer and ...
8 years, 6 months ago (2012-05-31 00:14:41 UTC) #1
jam
http://codereview.chromium.org/10454086/diff/1/base/metrics/histogram_sender.h File base/metrics/histogram_sender.h (right): http://codereview.chromium.org/10454086/diff/1/base/metrics/histogram_sender.h#newcode1 base/metrics/histogram_sender.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 6 months ago (2012-05-31 16:37:04 UTC) #2
jam
first round of comments, these will affect the rest of the code so I stopped ...
8 years, 6 months ago (2012-06-01 18:23:23 UTC) #3
ramant (doing other things)
Hi Jim and John Abd-El-Malek, Made all the changes John Abd-El-Malek has suggested. Would appreciate ...
8 years, 6 months ago (2012-06-07 02:04:41 UTC) #4
jam
(I'll leave the details of the histogram stuff to jar) http://codereview.chromium.org/10454086/diff/22042/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/10454086/diff/22042/chrome/browser/metrics/metrics_service.cc#newcode1086 ...
8 years, 6 months ago (2012-06-07 03:34:32 UTC) #5
ramant (doing other things)
Hi John Abd-El-Malek, Many many thanks for the code review. Made all the changes you ...
8 years, 6 months ago (2012-06-07 23:39:25 UTC) #6
jam
Since this patch is large, and I'm not familiar with the details of the moved ...
8 years, 6 months ago (2012-06-09 00:59:57 UTC) #7
jar (doing other things)
Yes... I'll do a careful review.. and then you (jam) can have another look. Thanks, ...
8 years, 6 months ago (2012-06-09 16:32:36 UTC) #8
jar (doing other things)
LGTM (with nits below) https://chromiumcodereview.appspot.com/10454086/diff/30155/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/10454086/diff/30155/chrome/browser/chrome_browser_main.cc#newcode1376 chrome/browser/chrome_browser_main.cc:1376: // be deleted after the ...
8 years, 5 months ago (2012-07-09 23:04:11 UTC) #9
jam
lgtm
8 years, 5 months ago (2012-07-11 00:42:23 UTC) #10
ramant (doing other things)
http://codereview.chromium.org/10454086/diff/30155/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/10454086/diff/30155/chrome/browser/chrome_browser_main.cc#newcode1376 chrome/browser/chrome_browser_main.cc:1376: // be deleted after the Task is executed. On ...
8 years, 5 months ago (2012-07-11 23:52:54 UTC) #11
jar (doing other things)
LGTM
8 years, 5 months ago (2012-07-12 00:00:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10454086/33015
8 years, 5 months ago (2012-07-12 03:14:21 UTC) #13
commit-bot: I haz the power
Can't process patch for file content/public/browser/histogram_fetcher.h. Unsupported svn property format.
8 years, 5 months ago (2012-07-12 03:14:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10454086/45077
8 years, 5 months ago (2012-07-12 03:44:54 UTC) #15
commit-bot: I haz the power
Can't process patch for file content/public/browser/histogram_fetcher.h. Unsupported svn property format.
8 years, 5 months ago (2012-07-12 03:44:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10454086/40014
8 years, 5 months ago (2012-07-12 17:09:52 UTC) #17
commit-bot: I haz the power
Can't process patch for file content/public/browser/histogram_fetcher.h. Unsupported svn property format.
8 years, 5 months ago (2012-07-12 17:09:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10454086/35058
8 years, 5 months ago (2012-07-12 17:48:24 UTC) #19
commit-bot: I haz the power
Failed to apply patch for base/metrics/histogram_flattener.h: While running patch -p0 --forward --force; patching file base/metrics/histogram_flattener.h ...
8 years, 5 months ago (2012-07-12 17:48:42 UTC) #20
M-A Ruel
On 2012/07/12 17:48:42, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
8 years, 5 months ago (2012-07-12 17:51:42 UTC) #21
jam
On Thu, Jul 12, 2012 at 10:51 AM, <maruel@chromium.org> wrote: > On 2012/07/12 17:48:42, I ...
8 years, 5 months ago (2012-07-12 17:54:22 UTC) #22
rtenneti
As jar and you had discussed, using "gcl commit" to commit the patch. thanks very ...
8 years, 5 months ago (2012-07-12 17:57:31 UTC) #23
M-A Ruel
2012/7/12 John Abd-El-Malek <jam@chromium.org> > > > On Thu, Jul 12, 2012 at 10:51 AM, ...
8 years, 5 months ago (2012-07-12 18:03:45 UTC) #24
jam
On Thu, Jul 12, 2012 at 11:03 AM, Marc-Antoine Ruel <maruel@chromium.org>wrote: > 2012/7/12 John Abd-El-Malek ...
8 years, 5 months ago (2012-07-12 18:10:41 UTC) #25
M-A Ruel
8 years, 5 months ago (2012-07-12 18:17:11 UTC) #26
2012/7/12 John Abd-El-Malek <jam@chromium.org>

>
>
> On Thu, Jul 12, 2012 at 11:03 AM, Marc-Antoine Ruel
<maruel@chromium.org>wrote:
>
>> 2012/7/12 John Abd-El-Malek <jam@chromium.org>
>>
>>>
>>>
>>> On Thu, Jul 12, 2012 at 10:51 AM, <maruel@chromium.org> wrote:
>>>
>>>> On 2012/07/12 17:48:42, I haz the power (commit-bot) wrote:
>>>>
>>>>> Failed to apply patch for base/metrics/histogram_**flattener.h:
>>>>> While running patch -p0 --forward --force;
>>>>> patching file base/metrics/histogram_**flattener.h
>>>>> Hunk #1 FAILED at 2.
>>>>> Hunk #2 FAILED at 13.
>>>>> 2 out of 2 hunks FAILED -- saving rejects to file
>>>>> base/metrics/histogram_**flattener.h.rej
>>>>>
>>>>
>>>> svn copy support is broken since the diff generated by rietveld
>>>> https://chromiumcodereview.**appspot.com/download/**
>>>>
issue10454086_35058_38021.diff<https://chromiumcodereview.appspot.com/download/issue10454086_35058_38021.diff>
>>>> is missing data. It works fine on git checkout.
>>>>
>>>
>>> Did that used to work before we switched to grabbing the diff from
>>> rietveld?
>>>
>>
>> A long time ago, rietveld.py used to grab the whole diff which *does*
>> contain the necessary metadata but the CQ doesn't use this link anymore.
>> This was problematic for patches larger than 1mb, which is more frequent
>> than one may think, even if each of the individual files are less than 1mb.
>>
>> Even the API is not that useful,
>> https://chromiumcodereview.appspot.com/api/10454086/35058 doesn't
>> contain the necessary metadata either because of the way the diff is split.
>>
>
> I'm not familiar with what rietveld.py?
>
> I thought that svn copies used to land with CQ, or am I wrong? If it did
> work, did it stop working when the CQ grabbed changed how it grabs the diff
> (i.e. because of the bug that rogerta was working on fixing)?
>

I'm not sure, I don't smoke these this and even less use svn at all. I
guess this broke with a rietveld upgrade but I'm not sure. In any case, CQ
will refuse patches it can't apply safely. In that case, it has no idea
what the source file is.

M-A

Powered by Google App Engine
This is Rietveld 408576698