Print data from individual perf runs.
authorDoug Evans <dje@google.com>
Fri, 24 Jul 2015 22:11:07 +0000 (15:11 -0700)
committerDoug Evans <dje@google.com>
Fri, 24 Jul 2015 22:11:07 +0000 (15:11 -0700)
gdb/testsuite/ChangeLog:

* gdb.perf/lib/perftest/measure.py (MeasurementCpuTime::stop): Print
result.
(MeasurementWallTime::stop): Ditto.
(MeasurementVmSizeTime::stop): Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.perf/lib/perftest/measure.py

index b0e8e4b890d737720ab07f095cea12e6e07533ad..d0665481d9a27a6d744ee6d71e7af2149a98ed4e 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-24  Doug Evans  <dje@google.com>
+
+       * gdb.perf/lib/perftest/measure.py (MeasurementCpuTime::stop): Print
+       result.
+       (MeasurementWallTime::stop): Ditto.
+       (MeasurementVmSizeTime::stop): Ditto.
+
 2015-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * gdb.base/catch-syscall.exp: Call gdb_exit before
index f0ecd48b35634cfc7b5ba03d1f555449d11b97db..f14b87fc865080a97884bf102fc033245312b7df 100644 (file)
@@ -103,6 +103,8 @@ class MeasurementCpuTime(Measurement):
         else:
             cpu_time = time.clock() - self.start_time
         self.result.record (id, cpu_time)
+        # Log this result for debugging purposes.
+        print ("elapsed cpu time %s" % (cpu_time))
 
 class MeasurementWallTime(Measurement):
     """Measurement on Wall time."""
@@ -117,6 +119,8 @@ class MeasurementWallTime(Measurement):
     def stop(self, id):
         wall_time = time.time() - self.start_time
         self.result.record (id, wall_time)
+        # Log this result for debugging purposes.
+        print ("elapsed wall time %s" % (wall_time))
 
 class MeasurementVmSize(Measurement):
     """Measurement on memory usage represented by VmSize."""
@@ -144,3 +148,5 @@ class MeasurementVmSize(Measurement):
     def stop(self, id):
         memory_used = self._compute_process_memory_usage("VmSize:")
         self.result.record (id, memory_used)
+        # Log this result for debugging purposes.
+        print ("vm used %s" % (memory_used))