projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 466da47
..4a0ef70 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,+5,@@ Phoronix Test Suite (Git)
 - 
pts-coreSupport download caches at /run/media/*/*/download-cache/
 - 
pts_GraphOnly render as much room for pts_OverViewGraph as there are for what will be rendered (bar graph values)
 - 
system_monitorAdd support for handling i915_energy monitor reading in microJoules for each test run
+- system_monitorPlace 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,+38,@@ 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,+141,@@ 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,+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'))
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media