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

Issue 937713003: Add several new TRACE call and UMA metrics for GetProfile() (Closed)

Created:
5 years, 10 months ago by rkaplow
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, rginda+watch_chromium.org, jam, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add several new TRACE call and UMA metrics for SetupProfile(). I've replaced measuring GetProfile() (which includes cached profiles) with SetupProfile() which is more useful to track. I've added metrics to track the expensive components under SetupProfile(), which are -chrome::RegisterProfilePrefs -chrome_prefs::CreateProfilePrefs -ProfileImpl::OnPrefsLoaded. There currently are UMA histograms called Startup.SlowStartupPreferenceLoading, but I'm setting up different versions of these. They are tracking almost but not exactly the same things, but the current ones are only triggered for slow startups. I considered modifying these to add a control version, but I thought adding new ones was better because: -The histograms I'm adding have better names since they are called what they are actually checking -I'm measuring at what I think is a better place (inside the method itself instead of near the caller. -The new histograms are easily comparable for the work I'm doing since they are for all data (can just check percentile data). Also changed the TRACE argument from path.value().c_str() to path.MaybeAsASCII() since the former was only giving the address inside the trace (I'm guessing it never worked). If someone wants to have themselves also be added as an owner to any of the new histograms let me know. BUG=454789 Committed: https://crrev.com/058da313f57dc0ae8ccbc12cc6053b21fc324cf9 Cr-Commit-Position: refs/heads/master@{#317078}

Patch Set 1 #

Patch Set 2 : fix typo #

Total comments: 4

Patch Set 3 : noms comments1 #

Patch Set 4 : noms comment p2 #

Total comments: 9

Patch Set 5 : noms asvitkine comments #

Total comments: 6

Patch Set 6 : comment updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -29 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 4 chunks +18 lines, -11 lines 0 comments Download
M components/keyed_service/content/browser_context_dependency_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 5 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
rkaplow
asvitkine@chromium.org: Please review changes in all caitkp@chromium.org: Please review changes in components/keyed_service/content/browser_context_dependency_manager.cc noms@chromium.org: Please review ...
5 years, 10 months ago (2015-02-18 18:28:44 UTC) #2
gab
prefs lgtm I suggest also getting rid of Startup.SlowStartupPreferenceLoading if it's mostly redundant now. Removing ...
5 years, 10 months ago (2015-02-18 18:44:49 UTC) #3
noms (inactive)
https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_manager.h#newcode80 chrome/browser/profiles/profile_manager.h:80: Profile* SetupProfile(const base::FilePath& profile_dir); I don't think this is ...
5 years, 10 months ago (2015-02-18 18:55:25 UTC) #4
rkaplow
On 2015/02/18 18:44:49, gab wrote: > prefs lgtm > > I suggest also getting rid ...
5 years, 10 months ago (2015-02-18 18:55:42 UTC) #5
gab
On 2015/02/18 18:55:42, rkaplow wrote: > On 2015/02/18 18:44:49, gab wrote: > > prefs lgtm ...
5 years, 10 months ago (2015-02-18 19:49:38 UTC) #6
rkaplow
https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_manager.h#newcode80 chrome/browser/profiles/profile_manager.h:80: Profile* SetupProfile(const base::FilePath& profile_dir); On 2015/02/18 18:55:25, Monica Dinculescu ...
5 years, 10 months ago (2015-02-18 19:58:57 UTC) #8
noms (inactive)
profiles lgtm https://codereview.chromium.org/937713003/diff/60001/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://codereview.chromium.org/937713003/diff/60001/chrome/browser/profiles/profile_manager.h#newcode79 chrome/browser/profiles/profile_manager.h:79: nit: extra \n https://codereview.chromium.org/937713003/diff/60001/chrome/browser/profiles/profile_manager.h#newcode261 chrome/browser/profiles/profile_manager.h:261: // handles ...
5 years, 10 months ago (2015-02-18 21:32:19 UTC) #9
Cait (Slow)
components/ lgtm
5 years, 10 months ago (2015-02-18 21:41:27 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_impl.cc#newcode286 chrome/browser/profiles/profile_impl.cc:286: // TODO(): http://crbug/160553 - Bad things happen if we ...
5 years, 10 months ago (2015-02-18 21:48:04 UTC) #11
rkaplow
https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/937713003/diff/20001/chrome/browser/profiles/profile_impl.cc#newcode286 chrome/browser/profiles/profile_impl.cc:286: // TODO(): http://crbug/160553 - Bad things happen if we ...
5 years, 10 months ago (2015-02-19 00:18:57 UTC) #13
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/937713003/diff/60001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/937713003/diff/60001/chrome/browser/profiles/profile_impl.cc#newcode273 chrome/browser/profiles/profile_impl.cc:273: path.MaybeAsASCII()); On 2015/02/19 00:18:57, rkaplow wrote: > On ...
5 years, 10 months ago (2015-02-19 14:44:59 UTC) #14
rkaplow
https://codereview.chromium.org/937713003/diff/80001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/937713003/diff/80001/chrome/browser/profiles/profile_impl.cc#newcode286 chrome/browser/profiles/profile_impl.cc:286: // TODO(rogerta): http://crbug/160553 - Bad things happen if we ...
5 years, 10 months ago (2015-02-19 15:42:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937713003/100001
5 years, 10 months ago (2015-02-19 16:20:27 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-19 18:18:58 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 18:20:14 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/058da313f57dc0ae8ccbc12cc6053b21fc324cf9
Cr-Commit-Position: refs/heads/master@{#317078}

Powered by Google App Engine
This is Rietveld 408576698