aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.perf
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-07-24 15:11:07 -0700
committerDoug Evans <dje@google.com>2015-07-24 15:11:07 -0700
commit4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d (patch)
treea727650f5953bc8e150521a1257a50e528b7b091 /gdb/testsuite/gdb.perf
parent1e76a7e9b156173a76e6a14a3ed41cefc9fed480 (diff)
downloadgdb-4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d.zip
gdb-4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d.tar.gz
gdb-4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d.tar.bz2
Print data from individual perf runs.
gdb/testsuite/ChangeLog: * gdb.perf/lib/perftest/measure.py (MeasurementCpuTime::stop): Print result. (MeasurementWallTime::stop): Ditto. (MeasurementVmSizeTime::stop): Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.perf')
-rw-r--r--gdb/testsuite/gdb.perf/lib/perftest/measure.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.perf/lib/perftest/measure.py b/gdb/testsuite/gdb.perf/lib/perftest/measure.py
index f0ecd48..f14b87f 100644
--- a/gdb/testsuite/gdb.perf/lib/perftest/measure.py
+++ b/gdb/testsuite/gdb.perf/lib/perftest/measure.py
@@ -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))