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

Issue 61983003: Add a switch to emit browser histograms. (Closed)

Created:
7 years, 1 month ago by grt (UTC plus 2)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Add a switch to emit browser histograms. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235191

Patch Set 1 #

Patch Set 2 : Use histogram to JSON code from https://codereview.chromium.org/55363003/. #

Total comments: 16

Patch Set 3 : review comments #

Total comments: 4

Patch Set 4 : more review comments #

Total comments: 16

Patch Set 5 : final nits addressed #

Patch Set 6 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -3 lines) Patch
M base/metrics/statistics_recorder.h View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 1 2 3 4 2 chunks +33 lines, -0 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 1 2 3 4 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
grt (UTC plus 2)
jar: base/metrics/* pk: chrome/* thanks.
7 years, 1 month ago (2013-11-06 18:21:39 UTC) #1
Alexei Svitkine (slow)
This looks similar to the current pending CL here: https://codereview.chromium.org/55363003/ (Both exporting as JSON.) You ...
7 years, 1 month ago (2013-11-06 18:37:12 UTC) #2
grt (UTC plus 2)
On 2013/11/06 18:37:12, Alexei Svitkine wrote: > This looks similar to the current pending CL ...
7 years, 1 month ago (2013-11-06 19:14:05 UTC) #3
Peter Kasting
chrome/common LGTM. I'll hold off on chrome/browser since it sounds like that might change based ...
7 years, 1 month ago (2013-11-06 19:38:30 UTC) #4
Alexei Svitkine (slow)
On 2013/11/06 19:14:05, grt wrote: > On 2013/11/06 18:37:12, Alexei Svitkine wrote: > > This ...
7 years, 1 month ago (2013-11-06 19:41:00 UTC) #5
jar (doing other things)
base/metrics LGTM
7 years, 1 month ago (2013-11-08 08:08:51 UTC) #6
grt (UTC plus 2)
Sending out for re-review. Everything but chrome/common has changed. The overall result is the same, ...
7 years, 1 month ago (2013-11-12 03:43:50 UTC) #7
jar (doing other things)
Tiny item I missed the first time... https://codereview.chromium.org/61983003/diff/130001/base/metrics/statistics_recorder.cc File base/metrics/statistics_recorder.cc (right): https://codereview.chromium.org/61983003/diff/130001/base/metrics/statistics_recorder.cc#newcode192 base/metrics/statistics_recorder.cc:192: if (snapshot.size()) ...
7 years, 1 month ago (2013-11-13 01:25:45 UTC) #8
Peter Kasting
https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode233 chrome/browser/ui/startup/startup_browser_creator.cc:233: // To be called only on the blocking pool. ...
7 years, 1 month ago (2013-11-13 03:49:20 UTC) #9
grt (UTC plus 2)
Thanks for the comments, PTAL. +marja: would you please take a look at the use ...
7 years, 1 month ago (2013-11-13 15:12:59 UTC) #10
marja
https://codereview.chromium.org/61983003/diff/380001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/380001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode622 chrome/browser/ui/startup/startup_browser_creator.cc:622: if (!process_startup) { Doing some code searching, it seems ...
7 years, 1 month ago (2013-11-13 15:37:33 UTC) #11
Alexei Svitkine (slow)
lgtm with a nit and % other people's comments https://codereview.chromium.org/61983003/diff/380001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/380001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode232 chrome/browser/ui/startup/startup_browser_creator.cc:232: ...
7 years, 1 month ago (2013-11-13 19:04:32 UTC) #12
jar (doing other things)
base/metrics LGTM
7 years, 1 month ago (2013-11-13 19:14:39 UTC) #13
jar (doing other things)
base/metrics LGTM
7 years, 1 month ago (2013-11-13 19:14:40 UTC) #14
Peter Kasting
https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode240 chrome/browser/ui/startup/startup_browser_creator.cc:240: base::StatisticsRecorder::WriteJSON(std::string(), &output_string); On 2013/11/13 15:13:00, grt wrote: > On ...
7 years, 1 month ago (2013-11-13 19:18:26 UTC) #15
grt (UTC plus 2)
All comments addressed. PTAL. https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/130001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode240 chrome/browser/ui/startup/startup_browser_creator.cc:240: base::StatisticsRecorder::WriteJSON(std::string(), &output_string); On 2013/11/13 19:18:26, ...
7 years, 1 month ago (2013-11-14 05:08:50 UTC) #16
Peter Kasting
LGTM https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc File base/metrics/statistics_recorder.cc (right): https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc#newcode173 base/metrics/statistics_recorder.cc:173: if (query.length()) { Nit: Use !empty() https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc#newcode174 base/metrics/statistics_recorder.cc:174: ...
7 years, 1 month ago (2013-11-14 07:04:06 UTC) #17
marja
chrome/browser/ui/startup/startup_browser_creator.cc LGTM code-wise (a design comment below) https://codereview.chromium.org/61983003/diff/490001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/61983003/diff/490001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode238 chrome/browser/ui/startup/startup_browser_creator.cc:238: if (base::PathExists(output_file)) ...
7 years, 1 month ago (2013-11-14 08:33:10 UTC) #18
grt (UTC plus 2)
Thanks for the reviews. https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc File base/metrics/statistics_recorder.cc (right): https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc#newcode173 base/metrics/statistics_recorder.cc:173: if (query.length()) { On 2013/11/14 ...
7 years, 1 month ago (2013-11-14 14:44:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/61983003/640001
7 years, 1 month ago (2013-11-14 14:44:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/61983003/830001
7 years, 1 month ago (2013-11-14 16:13:22 UTC) #21
commit-bot: I haz the power
Change committed as 235191
7 years, 1 month ago (2013-11-14 18:33:57 UTC) #22
Peter Kasting
https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc File base/metrics/statistics_recorder.cc (right): https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc#newcode190 base/metrics/statistics_recorder.cc:190: json.clear(); On 2013/11/14 14:44:12, grt wrote: > On 2013/11/14 ...
7 years, 1 month ago (2013-11-14 21:26:15 UTC) #23
grt (UTC plus 2)
https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc File base/metrics/statistics_recorder.cc (right): https://codereview.chromium.org/61983003/diff/490001/base/metrics/statistics_recorder.cc#newcode190 base/metrics/statistics_recorder.cc:190: json.clear(); On 2013/11/14 21:26:16, Peter Kasting wrote: > On ...
7 years, 1 month ago (2013-11-14 21:52:26 UTC) #24
Peter Kasting
On 2013/11/14 21:52:26, grt wrote: > On 2013/11/14 21:26:16, Peter Kasting wrote: > > OK... ...
7 years, 1 month ago (2013-11-14 21:59:21 UTC) #25
grt (UTC plus 2)
On 2013/11/14 21:59:21, Peter Kasting wrote: > On 2013/11/14 21:52:26, grt wrote: > > On ...
7 years, 1 month ago (2013-11-15 17:32:32 UTC) #26
Peter Kasting
On 2013/11/15 17:32:32, grt wrote: > On 2013/11/14 21:59:21, Peter Kasting wrote: > > On ...
7 years, 1 month ago (2013-11-15 22:28:24 UTC) #27
grt (UTC plus 2)
On 2013/11/15 22:28:24, Peter Kasting wrote: > On 2013/11/15 17:32:32, grt wrote: > > On ...
7 years, 1 month ago (2013-11-18 16:49:59 UTC) #28
Peter Kasting
This will be my last message on this topic. On 2013/11/18 16:49:59, grt wrote: > ...
7 years, 1 month ago (2013-11-19 22:35:02 UTC) #29
grt (UTC plus 2)
7 years, 1 month ago (2013-11-21 15:05:29 UTC) #30
Message was sent while issue was closed.
On 2013/11/19 22:35:02, Peter Kasting wrote:
> This will be my last message on this topic.
> 
> On 2013/11/18 16:49:59, grt wrote:
> > I'll change my ways if
> > there's consensus on chromium-dev that the style guide is mis-guided in this
> > case and that the majority of contributors share your view.
> 
> To summarize the thread for posterity:
> * One "lean slightly towards the [inside-loop] version" followed by "both fine
> if they perform well enough"
> * One "variable belongs in the loop unless this is in a critical performance
> path"
> * One "[inside the loop] most closely embodies the ethos of the style
> guide...[outside the loop] should require showing a performance impact or at
> least a strong argument of the impact"
> * One "outside the loop [due to Codelab about this]" followed by a retort
> quoting the same codelab as ending with "In general, Google style prefers
> clarity and simplicity, so consider only using this trick where it matters"
> 
> To me this sounds like reasonable support for the idea that the inside-loop
form
> is more consistent with Google's intended style.  I leave it to you to decide
> whether you agree.

Thanks for bringing it up on chromium-dev. I've landed a change to move this
string into the loop. Cheers,

Greg

Powered by Google App Engine
This is Rietveld 408576698