b4d6caaea1132e77e5c04c4d6ea9f492cae13716 |
|
18-Nov-2011 |
Chris Sosa <sosa@chromium.org> |
Add dut_usage tool that queries the autotest DB for usage data. Specifically this tool takes a time period and (hostname,platform_label) and prints out a summary of the overall usage of the machine(s). The time period is specified in a start_date, end_date of the format m/d/Y. Output looks like: Total running time 5 days, 16:22:12 Total queued time 6 days, 17:41:32 Total number of machines 13 Average time spent running tests per machine 10:29:24 Average Job Time 0:42:23 Average Time Job Queued 0:50:16 Total duration 1 day, 0:00:00 Usage 0.437083333333 BUG=chromium-os:22480 TEST=Ran with netbook_ALEX. Change-Id: I10e096c16102900d333c0ce71fde80a58acdca61 Reviewed-on: https://gerrit.chromium.org/gerrit/11883 Commit-Ready: Chris Sosa <sosa@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Chris Sosa <sosa@chromium.org>
/external/autotest/utils/site_check_dut_usage.py
|