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

Unified Diff: chrome/browser/chromeos/boot_times_loader.h

Issue 2112006: Cleaned up some constants for stats reading (Closed)
Patch Set: Review mods Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/boot_times_loader.h
diff --git a/chrome/browser/chromeos/boot_times_loader.h b/chrome/browser/chromeos/boot_times_loader.h
index 359202705618ca4c7d0909fc976a66ad677f76e2..51caaa373226fec4f52af33776e2f37053cf8051 100644
--- a/chrome/browser/chromeos/boot_times_loader.h
+++ b/chrome/browser/chromeos/boot_times_loader.h
@@ -54,6 +54,21 @@ 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.
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698