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

Side by Side Diff: src/platform/init/dump-boot-stats.conf

Issue 2079014: Log time in suspend. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Simplify the option parsing code for now. 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 unified diff | Download patch
« no previous file with comments | « src/platform/acpi/action_lid.sh ('k') | src/platform/power_manager/send_metrics_on_resume » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # dump-boot-stats 5 # dump-boot-stats
6 # 6 #
7 # when login-prompt-ready is received, grabs the current uptime and 7 # when login-prompt-ready is received, grabs the current uptime and
8 # disk stats. Also sends uptime to metrics client for perf dashboard 8 # disk stats. Also sends uptime to metrics client for perf dashboard
9 9
10 start on login-prompt-ready 10 start on login-prompt-ready
(...skipping 29 matching lines...) Expand all
40 Firmware.BootTime $FIRMWARE_BOOT_TIME 1 3000 50 & 40 Firmware.BootTime $FIRMWARE_BOOT_TIME 1 3000 50 &
41 echo $FIRMWARE_BOOT_TIME > /tmp/firmware-boot-time 41 echo $FIRMWARE_BOOT_TIME > /tmp/firmware-boot-time
42 fi 42 fi
43 43
44 /usr/bin/metrics_client -t \ 44 /usr/bin/metrics_client -t \
45 Platform.BootTime $BOOT_TIME 1 20000 50 & 45 Platform.BootTime $BOOT_TIME 1 20000 50 &
46 /usr/bin/metrics_client \ 46 /usr/bin/metrics_client \
47 Platform.BootSectorsRead $SECTORS_READ 1 1000000 50 & 47 Platform.BootSectorsRead $SECTORS_READ 1 1000000 50 &
48 /usr/bin/metrics_client \ 48 /usr/bin/metrics_client \
49 Platform.BootSectorsWritten $SECTORS_WRITTEN 1 10000 50 & 49 Platform.BootSectorsWritten $SECTORS_WRITTEN 1 10000 50 &
50
51 # Checks if the device shut down while in suspend and sends metrics
52 # as if coming out of suspend.
53 /usr/bin/send_metrics_on_resume -b &
50 54
51 echo $UPTIME_STATS > /tmp/uptime-login-prompt-ready 55 echo $UPTIME_STATS > /tmp/uptime-login-prompt-ready
52 echo $DISK_STATS > /tmp/disk-login-prompt-ready 56 echo $DISK_STATS > /tmp/disk-login-prompt-ready
53 end script 57 end script
OLDNEW
« no previous file with comments | « src/platform/acpi/action_lid.sh ('k') | src/platform/power_manager/send_metrics_on_resume » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698