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

Issue 796963002: Instrument some of the exit paths likely to suffer hangs. (Closed)

Created:
6 years ago by Sigurður Ásgeirsson
Modified:
6 years ago
CC:
chromium-reviews, tfarina, asvitkine+watch_chromium.org, erikwright (departed)
Base URL:
https://chromium.googlesource.com/chromium/src.git@end_session_instrument
Project:
chromium
Visibility:
Public.

Description

Instrument some of the exit paths likely to suffer hangs. This is temporary instrumentation to try and narrow down the area and mode where Chrome is (likely) hanging on logoff/restart. TBR=mpearson@chromium.org,erikwright@chromium.org BUG=412384 Committed: https://crrev.com/079c5a333e8a2dfd792b1cbf288151fcc42fe3f7 Cr-Commit-Position: refs/heads/master@{#308222}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add instrumentation for browser exit, plus now actually compiles #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -3 lines) Patch
M chrome/browser/background/background_mode_manager.cc View 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 5 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc View 4 chunks +29 lines, -0 lines 0 comments Download
M chrome/chrome_watcher/chrome_watcher_main.cc View 1 2 chunks +24 lines, -0 lines 1 comment Download
M components/browser_watcher.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +65 lines, -0 lines 1 comment Download

Messages

Total messages: 24 (8 generated)
Sigurður Ásgeirsson
Hey Scott, PTAL - I'd try and land this tomorrow and let it ride over ...
6 years ago (2014-12-11 20:37:37 UTC) #2
sky
LGTM with the following change https://codereview.chromium.org/796963002/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/796963002/diff/1/chrome/browser/ui/browser.cc#newcode662 chrome/browser/ui/browser.cc:662: if (should_quit_if_last_browser && chrome::ShouldStartShutdown(this)) ...
6 years ago (2014-12-11 23:36:23 UTC) #3
Sigurður Ásgeirsson
Hey Scott, so that CL wasn't my proudest moment. It was missing the final instrumentation ...
6 years ago (2014-12-12 20:09:23 UTC) #4
sky
I'm LGTM ing this. You should get cpu to look at the chrome_watcher change. +cpu
6 years ago (2014-12-12 20:52:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796963002/20001
6 years ago (2014-12-12 22:45:46 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/30204)
6 years ago (2014-12-13 00:02:18 UTC) #10
sky
Don't commit until cpu approves this.
6 years ago (2014-12-13 00:29:49 UTC) #11
Sigurður Ásgeirsson
'K On Fri Dec 12 2014 at 7:29:50 PM <sky@chromium.org> wrote: > Don't commit until ...
6 years ago (2014-12-13 01:12:23 UTC) #12
cpu_(ooo_6.6-7.5)
consider rvargas review as my review.
6 years ago (2014-12-13 01:17:34 UTC) #13
rvargas (doing something else)
lgtm https://codereview.chromium.org/796963002/diff/20001/chrome/chrome_watcher/chrome_watcher_main.cc File chrome/chrome_watcher/chrome_watcher_main.cc (right): https://codereview.chromium.org/796963002/diff/20001/chrome/chrome_watcher/chrome_watcher_main.cc#newcode47 chrome/chrome_watcher/chrome_watcher_main.cc:47: base::ProcessHandle dupe = base::kNullProcessHandle; It would be nice ...
6 years ago (2014-12-13 01:32:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796963002/20001
6 years ago (2014-12-13 01:37:17 UTC) #17
Sigurður Ásgeirsson
Hey Erik, Mark, I'm TBRing you guys on this for histograms.xml and components/browser_watcher.gypi respectively. I ...
6 years ago (2014-12-13 01:56:53 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-13 02:02:46 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/079c5a333e8a2dfd792b1cbf288151fcc42fe3f7 Cr-Commit-Position: refs/heads/master@{#308222}
6 years ago (2014-12-13 02:03:32 UTC) #21
Mark P
https://codereview.chromium.org/796963002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/796963002/diff/20001/tools/metrics/histograms/histograms.xml#newcode35443 tools/metrics/histograms/histograms.xml:35443: + <summary>Temporary instrumentation. See http://crbug.com/412384.</summary> This is unsatisfactory. Do ...
6 years ago (2014-12-15 19:01:55 UTC) #23
Sigurður Ásgeirsson
6 years ago (2014-12-15 23:16:08 UTC) #24
Message was sent while issue was closed.
Hey Mark,

filed http://crbug.com/442526.

This is really intended as a very short term measure, I hope I can rip them
out within the week.
These "histograms" are not going to be useful in histogram view at all. To
reconstruct the exit path of a Chrome instance, I'll have to dremel out the
stability report from raw logs.

Siggi

On Mon Dec 15 2014 at 2:01:56 PM <mpearson@chromium.org> wrote:

>
> https://codereview.chromium.org/796963002/diff/20001/
> tools/metrics/histograms/histograms.xml
> File tools/metrics/histograms/histograms.xml (right):
>
> https://codereview.chromium.org/796963002/diff/20001/
> tools/metrics/histograms/histograms.xml#newcode35443
> tools/metrics/histograms/histograms.xml:35443
>
<https://codereview.chromium.org/796963002/diff/20001/tools/metrics/histograms...>:
> +  <summary>Temporary
> instrumentation. See http://crbug.com/412384.</summary>
> This is unsatisfactory.
>
> Do none of this histograms have any future use, ever?  Will you remove
> them _all_?  I am okay with bad histogram descriptions if they're going
> to be marked as obsolete real soon now.  Please create a new bug
> assigned to you targeting M-41 (is that where the crashes started
> appearing and that's where you have to make any fixes?) to clean up the
> histogram recording and histograms descriptions.
>
> https://codereview.chromium.org/796963002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698