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

Unified Diff: client/site_tests/platform_BootPerf/platform_BootPerf.py

Issue 3343005: Add keyval result for time to network ready (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Add some comments Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/platform_BootPerf/platform_BootPerf.py
diff --git a/client/site_tests/platform_BootPerf/platform_BootPerf.py b/client/site_tests/platform_BootPerf/platform_BootPerf.py
index a3b6724af3ce19a8fb8c8f3a82c75e63b7ef9ab3..3b723d149d5b903e9a5374a00610ef3a11b855b2 100644
--- a/client/site_tests/platform_BootPerf/platform_BootPerf.py
+++ b/client/site_tests/platform_BootPerf/platform_BootPerf.py
@@ -113,6 +113,23 @@ class platform_BootPerf(test.test):
for resultname, filename in uptime_files:
results[resultname] = self.__parse_uptime(filename)
+ # Not all 'uptime-network-*-ready' files necessarily exist;
+ # probably there's only one. We go through a list of
+ # possibilities and pick the first one we find. We're not
+ # looking for 3G here, so we're not guaranteed to find any
+ # file.
+ network_time_files = [
+ '/tmp/uptime-network-wifi-ready',
+ '/tmp/uptime-network-ethernet-ready' ]
+
+ for filename in network_time_files:
+ try:
+ network_time = self.__parse_uptime(filename)
+ results['seconds_kernel_to_network'] = network_time
+ break
+ except error.TestFail:
+ pass
+
diskstat_files = [
('sectors_read_kernel_to_startup', '/tmp/disk-pre-startup'),
('sectors_read_kernel_to_startup_done', '/tmp/disk-post-startup'),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698