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 5# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3. 6# For instructions on how to: go/tauto-py3-migration 7# To re-enable migrate to Python 3. 8# If the test is not migrated by 1/14/22 it will be deleted. 9 10AUTHOR = "ChromeOS Team" 11NAME = "platform_BootPerf" 12PURPOSE = "Collect boot performance metrics from the last system reboot." 13CRITERIA = """ 14The test will fail if startup times or shut down times are exceeded. These 15values are set in the suite control file. 16""" 17ATTRIBUTES = "suite:crosbolt_perf_nightly" 18TIME = "SHORT" 19TEST_CATEGORY = "Benchmark" 20TEST_CLASS = "platform" 21TEST_TYPE = "client" 22 23DOC = """ 24Definitions of the results: 25 26 - reboots_in_syslog: 27 - the count of the number of reboots in syslog. 28 - seconds_firmware_boot: 29 - how long it took just the firmware to boot. 30 - seconds_kernel_to_login: 31 - how long from kernel startup to login screen display. 32 - seconds_kernel_to_startup: 33 - how long we've been up before starting the kernel. 34 - seconds_kernel_to_startup_done: 35 - how long we've been up after starting the kernel. 36 - seconds_power_on_to_login: 37 - total number of seconds from power on to login screen display. This is 38 the sum of the other values, and represents the total startup time. 39 - seconds_reboot_time: 40 - This is the total time from start of a reboot until the firmware has 41 booted. 42 - seconds_shutdown_time: 43 - This is the total time from the beginning of a shutdown until 44 power off. This is actually measured as time for a complete 45 reboot, minus the seconds_firmware_boot time. 46 - sectors_read_kernel_to_login: 47 - This is the number of disk sectors read from kernel boot until 48 login screen display. 49""" 50 51job.run_test('platform_BootPerf') 52