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

Issue 6077013: Add support for collecting non-Chrome crash stats in Chrome OS (Closed)

Created:
9 years, 11 months ago by kmixter1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, semenzato
Visibility:
Public.

Description

Add support for collecting non-Chrome crash stats in Chrome OS. Extends the external_metrics interface to recognize a new metric kind (crash) which gives a string to describe which kind of crash. We handle three currently non-Chrome user space crashes, kernel crashes, and unclean system shutdowns. These are accumulated, but not yet put into xml uploads until the server side is ready. BUG=chromium-os:9352 TEST=unit_tests and tested in chromeos that log messages were generated corresponding with crashes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72154

Patch Set 1 #

Total comments: 17

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -25 lines) Patch
M chrome/browser/chromeos/external_metrics.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/external_metrics.cc View 1 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/external_metrics_unittest.cc View 1 2 2 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/metrics/metrics_log.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 3 chunks +34 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 4 3 chunks +51 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 1 chunk +3 lines, -8 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
semenzato
Generally seems OK, but I have a couple of questions. Also, you'll need a Chrome ...
9 years, 11 months ago (2011-01-06 17:06:33 UTC) #1
petkov
http://codereview.chromium.org/6077013/diff/1/chrome/browser/chromeos/external_metrics.cc File chrome/browser/chromeos/external_metrics.cc (right): http://codereview.chromium.org/6077013/diff/1/chrome/browser/chromeos/external_metrics.cc#newcode94 chrome/browser/chromeos/external_metrics.cc:94: NewRunnableMethod(this, &ExternalMetrics::RecordCrashUI, crash_kind)); You probably want to stay on ...
9 years, 11 months ago (2011-01-06 18:50:36 UTC) #2
kmixter1
PTAL - responded to existing comments and added unit tests. Adding Jim and Evan to ...
9 years, 11 months ago (2011-01-14 00:07:01 UTC) #3
jar (doing other things)
http://codereview.chromium.org/6077013/diff/28001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): http://codereview.chromium.org/6077013/diff/28001/chrome/browser/metrics/metrics_log.cc#newcode112 chrome/browser/metrics/metrics_log.cc:112: void MetricsLog::WriteStabilityElement(PrefService* pref) { Why did you decide to ...
9 years, 11 months ago (2011-01-14 02:31:42 UTC) #4
kmixter1
http://codereview.chromium.org/6077013/diff/28001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): http://codereview.chromium.org/6077013/diff/28001/chrome/browser/metrics/metrics_log.cc#newcode112 chrome/browser/metrics/metrics_log.cc:112: void MetricsLog::WriteStabilityElement(PrefService* pref) { On 2011/01/14 02:31:47, jar wrote: ...
9 years, 11 months ago (2011-01-15 22:21:07 UTC) #5
jar (doing other things)
It has historically been more common (simpler?) to first change the log server to accept ...
9 years, 11 months ago (2011-01-16 07:14:33 UTC) #6
jar (doing other things)
Ken asked about the UI thread post.... so I added a comment... http://codereview.chromium.org/6077013/diff/1/chrome/browser/chromeos/external_metrics.cc File chrome/browser/chromeos/external_metrics.cc ...
9 years, 11 months ago (2011-01-18 22:32:22 UTC) #7
kmixter1
I agree it would be simpler to block on the server implementation, but its timing ...
9 years, 11 months ago (2011-01-20 23:54:10 UTC) #8
petkov
9 years, 11 months ago (2011-01-21 18:53:30 UTC) #9
On 2011/01/20 23:54:10, kmixter1 wrote:
> I agree it would be simpler to block on the server implementation, but its
> timing isn't clear yet, so I'd like to checkpoint this along with the Chrome
> OS changes that depend on it.
> 
> With Jim's LGTM, Darin, could you land this?

Done.

> 
> 
> On Tue, Jan 18, 2011 at 2:32 PM, <mailto:jar@chromium.org> wrote:
> 
> > Ken asked about the UI thread post.... so I added a comment...
> >
> >
> >
> >
> >
>
http://codereview.chromium.org/6077013/diff/1/chrome/browser/chromeos/externa...
> > File chrome/browser/chromeos/external_metrics.cc (right):
> >
> >
> >
>
http://codereview.chromium.org/6077013/diff/1/chrome/browser/chromeos/externa...
> > chrome/browser/chromeos/external_metrics.cc:94: NewRunnableMethod(this,
> > &ExternalMetrics::RecordCrashUI, crash_kind));
> > I believe jumping over to the UI thread is both correct and critical.
> > Without this PostTask, values will be read (for upload) on the UI
> > thread, and altered here (on another thread?).
> >
> >
> >
> > On 2011/01/14 00:07:02, kmixter1 wrote:
> >
> >> On 2011/01/06 18:50:36, petkov wrote:
> >> > You probably want to stay on the file thread -- not sure...
> >>
> >
> >  I'm not sure either.  Will defer to an owner of this code as UI thread
> >>
> > is where
> >
> >> all other processing happens in metrics_service and this routine
> >>
> > doesn't block.
> >
> > http://codereview.chromium.org/6077013/
> >

Powered by Google App Engine
This is Rietveld 408576698