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

Issue 23453032: Chrome.BrowserCrashDumpAttempts needs to account for multiple dumps from the same browser process. (Closed)

Created:
7 years, 3 months ago by Roger McFarlane (Chromium)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, kareng, Ilya Sherman, sukolsak, gab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Chrome.BrowserCrashDumpAttempts needs to account for multiple dumps from the same browser process. This CL fixes a bug wherein a non-fatal crash report would prevent subsequent (fatal or non-fatal) crash reports in the same browser process from being counted in the histograms. It has been further expanded to define separate histograms for crashing, non-crashing and total-number-of attenoted crash reports. R= cpu, jar, rvargas, grt BUG=290196 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223314

Patch Set 1 #

Total comments: 9

Patch Set 2 : Multi-dump logic was faulty, fixed key proliferation, send smoke signal in filter callback. #

Total comments: 18

Patch Set 3 : Count dumps with/without crashes separately. #

Total comments: 7

Patch Set 4 : fix nits #

Patch Set 5 : Declare the new histograms #

Total comments: 13

Patch Set 6 : use base::strings::SafeSPrintf #

Total comments: 2

Patch Set 7 : Use NOTREACHED() #

Total comments: 2

Patch Set 8 : Retry git cl upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -44 lines) Patch
M chrome/app/breakpad_win.cc View 1 2 3 4 5 6 7 chunks +52 lines, -29 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 1 chunk +38 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
Roger McFarlane (Chromium)
PTAL?
7 years, 3 months ago (2013-09-04 17:45:59 UTC) #1
cpu_(ooo_6.6-7.5)
what are we trying to solve? that there could be two (or more threads crashing ...
7 years, 3 months ago (2013-09-04 23:29:45 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc#newcode595 chrome/app/breakpad_win.cc:595: we don't have the smoke signal here ...
7 years, 3 months ago (2013-09-04 23:32:19 UTC) #3
Roger McFarlane (Chromium)
The problem we're trying to solve: The current code has a bug in that it ...
7 years, 3 months ago (2013-09-05 13:57:53 UTC) #4
grt (UTC plus 2)
drive-by https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc#newcode141 chrome/app/breakpad_win.cc:141: if (regkey.Create(HKEY_CURRENT_USER, when are these keys deleted?
7 years, 3 months ago (2013-09-05 21:09:13 UTC) #5
grt (UTC plus 2)
https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc#newcode141 chrome/app/breakpad_win.cc:141: if (regkey.Create(HKEY_CURRENT_USER, On 2013/09/05 21:09:13, grt wrote: > when ...
7 years, 3 months ago (2013-09-06 02:21:35 UTC) #6
grt (UTC plus 2)
On 2013/09/06 02:21:35, grt wrote: > https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc > File chrome/app/breakpad_win.cc (right): > > https://codereview.chromium.org/23453032/diff/1/chrome/app/breakpad_win.cc#newcode141 > ...
7 years, 3 months ago (2013-09-06 02:25:03 UTC) #7
Roger McFarlane (Chromium)
Another look? I walked through this again and realized that multiple dumps from a given ...
7 years, 3 months ago (2013-09-06 02:59:20 UTC) #8
grt (UTC plus 2)
https://codereview.chromium.org/23453032/diff/13001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/13001/chrome/app/breakpad_win.cc#newcode130 chrome/app/breakpad_win.cc:130: wchar_t g_browser_crash_dump_prefix[kBrowserCrashDumpPrefixLength + 1] = { 0 }; grt's ...
7 years, 3 months ago (2013-09-06 15:53:22 UTC) #9
rvargas (doing something else)
Drive by. As far as I can see, at a high level the problem that ...
7 years, 3 months ago (2013-09-06 19:58:57 UTC) #10
cpu_(ooo_6.6-7.5)
if you are adding a counter for real crashes can you please do it in ...
7 years, 3 months ago (2013-09-07 23:56:42 UTC) #11
Roger McFarlane (Chromium)
Thanks. Another look? https://codereview.chromium.org/23453032/diff/13001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/13001/chrome/app/breakpad_win.cc#newcode130 chrome/app/breakpad_win.cc:130: wchar_t g_browser_crash_dump_prefix[kBrowserCrashDumpPrefixLength + 1] = { ...
7 years, 3 months ago (2013-09-10 19:43:44 UTC) #12
grt (UTC plus 2)
code lgtm w/ two nits. thanks. https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc#newcode162 chrome/app/breakpad_win.cc:162: if (length > ...
7 years, 3 months ago (2013-09-11 03:25:56 UTC) #13
Roger McFarlane (Chromium)
Thanks. I've addressed the remaining nits and updated histograms.xml. cpu? rvargas? jar? https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc ...
7 years, 3 months ago (2013-09-11 15:42:51 UTC) #14
rvargas (doing something else)
https://codereview.chromium.org/23453032/diff/52001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/52001/chrome/app/breakpad_win.cc#newcode179 chrome/app/breakpad_win.cc:179: int length = swprintf( This is a non trivial ...
7 years, 3 months ago (2013-09-12 02:50:21 UTC) #15
Roger McFarlane (Chromium)
Thanks. Created a bug, updated the CL description, and responded to the questions raised by ...
7 years, 3 months ago (2013-09-12 17:51:38 UTC) #16
rvargas (doing something else)
https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc#newcode177 chrome/app/breakpad_win.cc:177: const int kMaxValueSize = 2 * arraysize(g_browser_crash_dump_prefix); On 2013/09/11 ...
7 years, 3 months ago (2013-09-12 20:15:58 UTC) #17
Roger McFarlane (Chromium)
Thanks. PTAL? https://codereview.chromium.org/23453032/diff/52001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/52001/chrome/app/breakpad_win.cc#newcode153 chrome/app/breakpad_win.cc:153: arraysize(g_browser_crash_dump_prefix), On 2013/09/12 20:15:59, rvargas wrote: > ...
7 years, 3 months ago (2013-09-13 18:34:23 UTC) #18
grt (UTC plus 2)
https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc#newcode177 chrome/app/breakpad_win.cc:177: const int kMaxValueSize = 2 * arraysize(g_browser_crash_dump_prefix); On 2013/09/12 ...
7 years, 3 months ago (2013-09-13 18:39:28 UTC) #19
rvargas (doing something else)
lgtm https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/29001/chrome/app/breakpad_win.cc#newcode177 chrome/app/breakpad_win.cc:177: const int kMaxValueSize = 2 * arraysize(g_browser_crash_dump_prefix); On ...
7 years, 3 months ago (2013-09-13 19:45:28 UTC) #20
Roger McFarlane (Chromium)
Thanks. https://codereview.chromium.org/23453032/diff/62001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/62001/chrome/app/breakpad_win.cc#newcode158 chrome/app/breakpad_win.cc:158: DCHECK_GT(length, 0); On 2013/09/13 19:45:29, rvargas wrote: > ...
7 years, 3 months ago (2013-09-13 20:42:43 UTC) #21
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/23453032/diff/72001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/72001/chrome/app/breakpad_win.cc#newcode627 chrome/app/breakpad_win.cc:627: RecordCrashDumpAttempt(true); Is this thing here temporary? I want to ...
7 years, 3 months ago (2013-09-13 21:04:28 UTC) #22
Roger McFarlane (Chromium)
https://codereview.chromium.org/23453032/diff/72001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): https://codereview.chromium.org/23453032/diff/72001/chrome/app/breakpad_win.cc#newcode627 chrome/app/breakpad_win.cc:627: RecordCrashDumpAttempt(true); On 2013/09/13 21:04:28, cpu wrote: > Is this ...
7 years, 3 months ago (2013-09-13 21:30:45 UTC) #23
jar (doing other things)
lgtm
7 years, 3 months ago (2013-09-13 22:24:53 UTC) #24
cpu_(ooo_6.6-7.5)
lgtm
7 years, 3 months ago (2013-09-15 19:04:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerm@chromium.org/23453032/53004
7 years, 3 months ago (2013-09-16 01:39:11 UTC) #26
commit-bot: I haz the power
7 years, 3 months ago (2013-09-16 06:15:47 UTC) #27
Message was sent while issue was closed.
Change committed as 223314

Powered by Google App Engine
This is Rietveld 408576698