From ca3084f54b62ce06c6e70a6e1daafeb5e3317c12 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 24 Jul 2015 17:39:56 -0700 Subject: [PATCH] Revert 4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d, log individual measurements. I think I lost a patch along the way, because I remember needing something like this, but the reverted patch isn't the right way to do this. Removing ... 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 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5371caeb09e..3a00c23dd95 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -52,13 +52,6 @@ * lib/gdb.exp (gdb_compile): Undo debian's change in default of --as-needed. -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 f14b87fc865..f0ecd48b356 100644 --- a/gdb/testsuite/gdb.perf/lib/perftest/measure.py +++ b/gdb/testsuite/gdb.perf/lib/perftest/measure.py @@ -103,8 +103,6 @@ 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.""" @@ -119,8 +117,6 @@ 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.""" @@ -148,5 +144,3 @@ 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