1# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = "Chrome OS Team"
6NAME = "platform_BootPerf"
7PURPOSE = "Collect boot performance metrics from the last system reboot."
8CRITERIA = """
9The test will fail if startup times or shut down times are exceeded. These
10values are set in the suite control file.
11"""
12ATTRIBUTES = "suite:crosbolt_perf_nightly"
13SUITE = "crosbolt_perf_nightly"
14TIME = "SHORT"
15TEST_CATEGORY = "Benchmark"
16TEST_CLASS = "platform"
17TEST_TYPE = "client"
18
19DOC = """
20Definitions of the results:
21
22  - reboots_in_syslog:
23    - the count of the number of reboots in syslog.
24  - seconds_firmware_boot:
25    - how long it took just the firmware to boot.
26  - seconds_kernel_to_login:
27    - how long from kernel startup to login screen display.
28  - seconds_kernel_to_startup:
29    - how long we've been up before starting the kernel.
30  - seconds_kernel_to_startup_done:
31    - how long we've been up after starting the kernel.
32  - seconds_power_on_to_login:
33    - total number of seconds from power on to login screen display. This is
34      the sum of the other values, and represents the total startup time.
35  - seconds_reboot_time:
36    - This is the total time from start of a reboot until the firmware has
37      booted.
38  - seconds_shutdown_time:
39    - This is the total time from the beginning of a shutdown until
40      power off.  This is actually measured as time for a complete
41      reboot, minus the seconds_firmware_boot time.
42  - sectors_read_kernel_to_login:
43    - This is the number of disk sectors read from kernel boot until
44      login screen display.
45"""
46
47job.run_test('platform_BootPerf')
48