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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 2003001: Add time for when chrome's main() is called. (Closed)
Patch Set: Created 10 years, 8 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
Index: chrome/app/chrome_dll_main.cc
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 3f54f04c93b2d052b523d6b2abeae58833bfd093..9e2becc3d8ef0acc5520f04836c56f7463aeb1e0 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -397,7 +397,11 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance,
#elif defined(OS_POSIX)
int ChromeMain(int argc, char** argv) {
#endif
-
+#if defined(OS_CHROMEOS)
+ // Output our start times.
+ system("set -o noclobber ; cat /proc/uptime > /tmp/uptime-chrome-main");
+ system("set -o noclobber ; cat /sys/block/sda/stat > /tmp/disk-chrome-main");
+#endif
#if defined(OS_MACOSX)
// TODO(mark): Some of these things ought to be handled in chrome_exe_main.mm.
// Under the current architecture, nothing in chrome_exe_main can rely
« no previous file with comments | « no previous file | chrome/browser/chromeos/boot_times_loader.h » ('j') | chrome/browser/chromeos/boot_times_loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698