summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 23:50:16 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 23:50:16 +0000
commit03b3d3fe34206d788cef52947de0093c4aa100da (patch)
treea74e8ec14b4d4b6d106673626ae607ee0d73d828 /chrome/app
parent040b800f9a064e093255e1e5e2718b1cd51275a3 (diff)
downloadchromium_src-03b3d3fe34206d788cef52947de0093c4aa100da.zip
chromium_src-03b3d3fe34206d788cef52947de0093c4aa100da.tar.gz
chromium_src-03b3d3fe34206d788cef52947de0093c4aa100da.tar.bz2
Add time for when chrome's main() is called.
Also output chrome's time to launch on the login screen. Review URL: http://codereview.chromium.org/2003001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/chrome_dll_main.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 3f54f04..9e2becc 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