From 4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 24 Jul 2015 15:11:07 -0700 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 7 +++++++ gdb/testsuite/gdb.perf/lib/perftest/measure.py | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b0e8e4b890d..d0665481d9a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-07-24 Doug Evans + + * gdb.perf/lib/perftest/measure.py (MeasurementCpuTime::stop): Print + result. + (MeasurementWallTime::stop): Ditto. + (MeasurementVmSizeTime::stop): Ditto. + 2015-07-24 Sergio Durigan Junior * gdb.base/catch-syscall.exp: Call gdb_exit before diff --git a/gdb/testsuite/gdb.perf/lib/perftest/measure.py b/gdb/testsuite/gdb.perf/lib/perftest/measure.py index f0ecd48b356..f14b87fc865 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)) -- 2.30.2