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

Issue 9232071: Upload UMA data using protocol buffers. (Closed)

Created:
8 years, 10 months ago by Ilya Sherman
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, MAD, jar (doing other things), mihaip+watch_chromium.org, Ryan Sleevi, cpu_(ooo_6.6-7.5)
Visibility:
Public.

Description

Upload UMA data using protocol buffers. For now, we will also preserve the existing XML upload system, so that there is no risk of data loss. BUG=109817 TEST=unit tested Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123901

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase #

Patch Set 3 : Updated error-handling for MericsLogSerializer #

Patch Set 4 : Fix up existing unit tests #

Patch Set 5 : Commit new file to git repo... #

Patch Set 6 : A few more small fixes #

Patch Set 7 : Rebase #

Total comments: 70

Patch Set 8 : Update server URL #

Patch Set 9 : Be more careful with strings and TimeTicks::Now() rather than Time::Now() #

Patch Set 10 : Fix up compile for tests and ChromeFrame #

Patch Set 11 : Once more, with feeling #

Patch Set 12 : Death to stray semi-colons #

Patch Set 13 : Fix up format macro? #

Patch Set 14 : Never re-upload protobuf logs #

Total comments: 20

Patch Set 15 : Rebase #

Patch Set 16 : Log time in seconds, strip cookies #

Patch Set 17 : Remove a couple of resolved TODOs #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1153 lines, -541 lines) Patch
M chrome/browser/metrics/metrics_log.h View 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 chunks +327 lines, -67 lines 0 comments Download
M chrome/browser/metrics/metrics_log_serializer.h View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -12 lines 0 comments Download
M chrome/browser/metrics/metrics_log_serializer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +95 lines, -48 lines 0 comments Download
M chrome/browser/metrics/metrics_log_serializer_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +63 lines, -55 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 6 chunks +6 lines, -176 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 1 chunk +12 lines, -4 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 15 chunks +142 lines, -48 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/metrics/metrics_log_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +28 lines, -17 lines 0 comments Download
M chrome/common/metrics/metrics_log_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +135 lines, -66 lines 0 comments Download
A chrome/common/metrics/metrics_log_base_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +195 lines, -0 lines 0 comments Download
M chrome/common/metrics/metrics_log_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +40 lines, -13 lines 0 comments Download
M chrome/common/metrics/metrics_log_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +48 lines, -15 lines 0 comments Download
M chrome/common/metrics/metrics_log_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -4 lines 0 comments Download
M chrome_frame/metrics_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Ilya Sherman
This also includes all of the changes in [ https://chromiumcodereview.appspot.com/9232070/ ]. Two things still missing ...
8 years, 10 months ago (2012-01-28 08:17:20 UTC) #1
Ilya Sherman
The associated server-side CL has finally cleared the review hurdle and landed. PTAL :)
8 years, 10 months ago (2012-02-14 01:22:38 UTC) #2
Ilya Sherman
https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc#newcode1057 chrome/browser/chrome_browser_main.cc:1057: return true; TODO(isherman): This is handy for testing for ...
8 years, 10 months ago (2012-02-17 06:07:44 UTC) #3
ian fette
lgtm http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_service.cc#newcode220 chrome/browser/metrics/metrics_service.cc:220: const char kServerUrlProto[] = "http://rhennthyl.mtv.corp.google.com:8888/uma"; https://clients4.google.com/uma/v2
8 years, 10 months ago (2012-02-23 00:23:16 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/metrics/metrics_service.cc#newcode220 chrome/browser/metrics/metrics_service.cc:220: const char kServerUrlProto[] = "http://rhennthyl.mtv.corp.google.com:8888/uma"; On 2012/02/23 00:23:16, ian ...
8 years, 10 months ago (2012-02-23 00:51:21 UTC) #5
jar (doing other things)
A few questions and comments. One larger element is that I found the use of ...
8 years, 10 months ago (2012-02-23 01:59:18 UTC) #6
ian fette
http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log.cc#newcode611 chrome/browser/metrics/metrics_log.cc:611: gpu_performance->set_overall_score(gpu_performance_stats.overall); On 2012/02/23 01:59:18, jar wrote: > Are these ...
8 years, 10 months ago (2012-02-23 02:08:42 UTC) #7
ian fette
http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc File chrome/browser/metrics/metrics_log_serializer.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc#newcode100 chrome/browser/metrics/metrics_log_serializer.cc:100: logs_xml[i] = logs[i].first; On 2012/02/23 02:08:43, ian fette wrote: ...
8 years, 10 months ago (2012-02-23 03:02:53 UTC) #8
jar (doing other things)
http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc File chrome/browser/metrics/metrics_log_serializer.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc#newcode22 chrome/browser/metrics/metrics_log_serializer.cc:22: const size_t kMaxInitialLogsPersisted = 20; You missed my point ...
8 years, 10 months ago (2012-02-23 03:03:06 UTC) #9
Ryan Sleevi
http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc File chrome/browser/metrics/metrics_log_serializer.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log_serializer.cc#newcode100 chrome/browser/metrics/metrics_log_serializer.cc:100: logs_xml[i] = logs[i].first; On 2012/02/23 03:03:06, jar wrote: > ...
8 years, 10 months ago (2012-02-23 03:28:06 UTC) #10
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): http://codereview.chromium.org/9232071/diff/18001/chrome/browser/metrics/metrics_log.cc#newcode570 chrome/browser/metrics/metrics_log.cc:570: // TODO(isherman): This does the wrong thing on a ...
8 years, 10 months ago (2012-02-23 18:55:19 UTC) #11
Ilya Sherman
https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc#newcode1057 chrome/browser/chrome_browser_main.cc:1057: return true; On 2012/02/23 01:59:18, jar wrote: > I ...
8 years, 10 months ago (2012-02-24 02:10:06 UTC) #12
Ilya Sherman
Changed to also never re-upload protobuf logs, so that we avoid duplicated successful uploads corresponding ...
8 years, 10 months ago (2012-02-25 01:54:11 UTC) #13
jar (doing other things)
A few more questions and comments. Thanks in advance! https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc#newcode1057 chrome/browser/chrome_browser_main.cc:1057: ...
8 years, 9 months ago (2012-02-27 20:35:33 UTC) #14
Ilya Sherman
https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/9232071/diff/18001/chrome/browser/chrome_browser_main.cc#newcode1057 chrome/browser/chrome_browser_main.cc:1057: return true; On 2012/02/27 20:35:34, jar wrote: > Since ...
8 years, 9 months ago (2012-02-28 00:23:10 UTC) #15
jar (doing other things)
Thanks for the responses! The only pending item was the use of a resource file ...
8 years, 9 months ago (2012-02-28 01:33:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/9232071/44027
8 years, 9 months ago (2012-02-28 01:44:20 UTC) #17
commit-bot: I haz the power
Change committed as 123901
8 years, 9 months ago (2012-02-28 05:31:34 UTC) #18
cpu_(ooo_6.6-7.5)
this seems to have broken the tree: chrome/common/metrics/metrics_log_base.cc: In member function 'void MetricsLogBase::CloseLog()': chrome/common/metrics/metrics_log_base.cc:216:error: 'class ...
8 years, 9 months ago (2012-02-28 05:45:33 UTC) #19
ian fette
Interesting, not sure why this compiled locally. In the proto that's checked into the Chrome ...
8 years, 9 months ago (2012-02-28 05:59:50 UTC) #20
Ilya Sherman
8 years, 9 months ago (2012-02-28 06:44:29 UTC) #21
On 2012/02/28 05:59:50, ian fette wrote:
> Interesting, not sure why this compiled locally. In the proto that's checked
> into the Chrome repository, hardware_class is under the hardware message,
> whereas the line below (from your patch) would imply that it's at the system
> profile level, not system profile -> hardware -> hardware class.
> 
> uma_proto_.mutable_system_profile()->set_hardware_class(hardware_class_);
> 
> Really no idea why that compiled / didn't barf all over trybots.

It's #ifdef'd for ChromeOS only :(
Fixing, recommitting...

Powered by Google App Engine
This is Rietveld 408576698