diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 17:36:06 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 17:36:06 +0000 |
commit | d4fe1fbc3ccfd3f55dd4311fb141fb327915f591 (patch) | |
tree | f3bcff8f7101d9adb955adf29e4dffc669acc428 /chrome/browser/chromeos/boot_times_loader.h | |
parent | 42f8c930d298f8edc24c11a2a2dd2567dbc4955b (diff) | |
download | chromium_src-d4fe1fbc3ccfd3f55dd4311fb141fb327915f591.zip chromium_src-d4fe1fbc3ccfd3f55dd4311fb141fb327915f591.tar.gz chromium_src-d4fe1fbc3ccfd3f55dd4311fb141fb327915f591.tar.bz2 |
- Made the writing of boot times happen on the file thread.
- Also combined two different ways of writing these times into
common code.
- Tweaked the color / font of the output
BUG=NONE
TEST=Ensure that boot times still display on login screen.
Review URL: http://codereview.chromium.org/2112006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/boot_times_loader.h')
-rw-r--r-- | chrome/browser/chromeos/boot_times_loader.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/boot_times_loader.h b/chrome/browser/chromeos/boot_times_loader.h index 3592027..6e03ec5 100644 --- a/chrome/browser/chromeos/boot_times_loader.h +++ b/chrome/browser/chromeos/boot_times_loader.h @@ -54,6 +54,20 @@ class BootTimesLoader : public CancelableRequestProvider { CancelableRequestConsumerBase* consumer, GetBootTimesCallback* callback); + // Records current uptime and disk usage for metrics use. + // Posts task to file thread. + // name will be used as part of file names in /tmp. + // Existing stats files will not be overwritten. + static void RecordCurrentStats(const std::string& name); + + // Saves away the stats at main, so the can be recorded later. At main() time + // the necessary threads don't exist yet for recording the data. + static void SaveChromeMainStats(); + + // Records the data previously saved by SaveChromeMainStats(), using the + // file thread. Existing stats files will not be overwritten. + static void RecordChromeMainStats(); + private: // BootTimesLoader calls into the Backend on the file thread to load // and extract the boot times. |