Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 466da47..4a0ef70 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,6 +5,7 @@ Phoronix Test Suite (Git)
- pts-core: Support download caches at /run/media/*/*/download-cache/
- pts_Graph: Only render as much room for pts_OverViewGraph as there are for what will be rendered (bar graph values)
- system_monitor: Add support for handling i915_energy monitor reading in microJoules for each test run
+- system_monitor: Place timer support for individual test runs within the module
Phoronix Test Suite 4.0 Milestone 3
22 May 2012
diff --git a/pts-core/modules/system_monitor.php b/pts-core/modules/system_monitor.php
index b4f9738..61e2bb0 100644
--- a/pts-core/modules/system_monitor.php
+++ b/pts-core/modules/system_monitor.php
@@ -38,6 +38,7 @@ class system_monitor extends pts_module_interface
static $individual_monitoring = null;
private static $sensor_monitoring_frequency = 2;
+ private static $test_run_timer = 0;
private static $monitor_i915_energy = false; // special case of monitoring since it's not tapping Phodevi (right now at least)
@@ -140,6 +141,8 @@ class system_monitor extends pts_module_interface
// Just read i915_energy to reset the joule counter
file_get_contents('/sys/kernel/debug/dri/0/i915_energy');
}
+
+ self::$test_run_timer = time();
}
public static function __post_test_run_success($test_run_request)
{
@@ -152,7 +155,10 @@ class system_monitor extends pts_module_interface
return;
}
- // Let the system return to brief idling...
+ // The self::$test_run_timer to contain how long each individual test run lasted, should anything else past this point want to use the info...
+ self::$test_run_timer = time() - self::$test_run_timer;
+
+ // Let the system return to brief idling..
sleep(self::$sensor_monitoring_frequency);
if(pts_module::read_variable('PERFORMANCE_PER_WATT'))
<
Copyright © 2013 by Phoronix Media