| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |