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

Issue 2871793003: Added histograms on process singleton create when remote process exists and we cannot notify it (Closed)

Created:
3 years, 7 months ago by Alexey Seren
Modified:
3 years, 7 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Added histograms on process singleton create when remote process exists and we cannot notify it Currently we have no information about starting of browser process when other remote processes exist. This CL adds some histograms that will track following: - how we have interacted with remote process before start we cannot notify them (i.e. unlocked profile or terminated) - reason of remote process termination - error codes for remote process termination BUG=720277 Review-Url: https://codereview.chromium.org/2871793003 Cr-Commit-Position: refs/heads/master@{#472144} Committed: https://chromium.googlesource.com/chromium/src/+/028ea15d88db7e9bfb4303698ae52fbf75fc55ca

Patch Set 1 #

Total comments: 16

Patch Set 2 : Some fixes basing on review comments #

Total comments: 4

Patch Set 3 : Split histogram enums by platforms #

Total comments: 6

Patch Set 4 : Updated NotifyOtherProcessNoSuicide test to send right histogram #

Total comments: 8

Patch Set 5 : Reset SkipIsChromeProcessCheck state prior to every test #

Total comments: 1

Patch Set 6 : Made histogram enums COUNT to be grown automatically #

Total comments: 2

Patch Set 7 : Updated histograms owners #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -8 lines) Patch
M chrome/browser/process_singleton.h View 1 2 3 4 5 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/process_singleton_posix.cc View 1 2 3 4 14 chunks +62 lines, -5 lines 0 comments Download
M chrome/browser/process_singleton_posix_unittest.cc View 1 2 3 4 6 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 2 5 chunks +54 lines, -3 lines 0 comments Download
M chrome/browser/process_singleton_win_unittest.cc View 6 chunks +35 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (20 generated)
Alexey Seren
https://codereview.chromium.org/2871793003/diff/1/chrome/browser/process_singleton_posix.cc File chrome/browser/process_singleton_posix.cc (right): https://codereview.chromium.org/2871793003/diff/1/chrome/browser/process_singleton_posix.cc#newcode1092 chrome/browser/process_singleton_posix.cc:1092: UnlinkPath(lock_path_); We need to unlink lock file if user ...
3 years, 7 months ago (2017-05-10 04:27:07 UTC) #4
jochen (gone - plz use gerrit)
can you file a tracking bug please and reference it from the CL description?
3 years, 7 months ago (2017-05-10 08:20:34 UTC) #7
Alexey Seren
On 2017/05/10 08:20:34, jochen wrote: > can you file a tracking bug please and reference ...
3 years, 7 months ago (2017-05-10 09:30:11 UTC) #9
gab
Are any of these actionable? What are you trying to diagnose from this data? https://codereview.chromium.org/2871793003/diff/1/chrome/browser/process_singleton.h ...
3 years, 7 months ago (2017-05-10 15:16:50 UTC) #10
Alexey Seren
I think that all of this histograms indicates different issues that can happen with chromium ...
3 years, 7 months ago (2017-05-11 13:42:05 UTC) #12
Alexey Seren
On 2017/05/10 15:16:50, gab wrote: > Are any of these actionable? What are you trying ...
3 years, 7 months ago (2017-05-11 13:44:38 UTC) #13
manzagop (departed)
There are some issues with launching a second browser when one is already running, and ...
3 years, 7 months ago (2017-05-11 13:59:07 UTC) #18
Alexey Seren
Great, thank you! Please note that all metrics are sent from STARTED browser when we ...
3 years, 7 months ago (2017-05-11 14:48:46 UTC) #20
gab
https://codereview.chromium.org/2871793003/diff/1/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (right): https://codereview.chromium.org/2871793003/diff/1/chrome/browser/process_singleton_win.cc#newcode222 chrome/browser/process_singleton_win.cc:222: "Chrome.ProcessSingleton.ProcessTerminateErrorCode.Windows", On 2017/05/11 13:42:05, aseren wrote: > On 2017/05/10 ...
3 years, 7 months ago (2017-05-11 15:10:03 UTC) #21
manzagop (departed)
> Great, thank you! Please note that all metrics are sent from STARTED browser > ...
3 years, 7 months ago (2017-05-11 16:21:47 UTC) #22
manzagop (departed)
https://codereview.chromium.org/2871793003/diff/20001/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (left): https://codereview.chromium.org/2871793003/diff/20001/chrome/browser/process_singleton_win.cc#oldcode262 chrome/browser/process_singleton_win.cc:262: // TODO(manzagop): capture a hang report. On 2017/05/11 14:48:46, ...
3 years, 7 months ago (2017-05-11 16:21:55 UTC) #23
Alexey Seren
PTAL, > s/OSAgnosticErrno/PosixErrno/ (maybe there's already such a suffix in > histograms.xml? I didn't look...) ...
3 years, 7 months ago (2017-05-11 19:18:40 UTC) #24
gab
https://codereview.chromium.org/2871793003/diff/40001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): https://codereview.chromium.org/2871793003/diff/40001/chrome/browser/process_singleton.h#newcode75 chrome/browser/process_singleton.h:75: TERMINATE_NOT_ENOUGH_PERMISSIONS = 5, Why are some terminate histograms here ...
3 years, 7 months ago (2017-05-12 18:40:59 UTC) #25
Alexey Seren
PTAL, Also I have fixed ProcessSingletonPosixTest.NotifyOtherProcessNoSuicide test to do right check. https://codereview.chromium.org/2871793003/diff/40001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): ...
3 years, 7 months ago (2017-05-15 08:40:48 UTC) #26
gab
lgtm w/ nits, thanks https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h#newcode85 chrome/browser/process_singleton.h:85: REMOTE_PROCESS_INTERACTION_RESULT_COUNT = 14 Do not ...
3 years, 7 months ago (2017-05-15 16:58:39 UTC) #27
Alexey Seren
Thank you for reviewing this CL. Please find some comment and code fixes below. https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h ...
3 years, 7 months ago (2017-05-15 19:20:26 UTC) #28
gab
https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h#newcode85 chrome/browser/process_singleton.h:85: REMOTE_PROCESS_INTERACTION_RESULT_COUNT = 14 On 2017/05/15 19:20:25, aseren wrote: > ...
3 years, 7 months ago (2017-05-15 20:13:06 UTC) #31
Steven Holte
histograms lgtm
3 years, 7 months ago (2017-05-16 00:01:28 UTC) #34
Alexey Seren
Small code changes basing on gab comments https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): https://codereview.chromium.org/2871793003/diff/60001/chrome/browser/process_singleton.h#newcode85 chrome/browser/process_singleton.h:85: REMOTE_PROCESS_INTERACTION_RESULT_COUNT = ...
3 years, 7 months ago (2017-05-16 05:30:38 UTC) #35
jochen (gone - plz use gerrit)
lgtm
3 years, 7 months ago (2017-05-16 11:15:53 UTC) #36
gab
https://codereview.chromium.org/2871793003/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2871793003/diff/100001/tools/metrics/histograms/histograms.xml#newcode7068 tools/metrics/histograms/histograms.xml:7068: + <owner>aseren@yandex-team.ru</owner> On 2017/05/16 05:30:38, aseren wrote: > Should ...
3 years, 7 months ago (2017-05-16 15:04:27 UTC) #37
Alexey Seren
Done. Thank you.
3 years, 7 months ago (2017-05-16 15:35:26 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871793003/120001
3 years, 7 months ago (2017-05-16 15:36:20 UTC) #41
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 17:23:15 UTC) #44
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/028ea15d88db7e9bfb4303698ae5...

Powered by Google App Engine
This is Rietveld 408576698