From: Doug Evans Date: Sat, 25 Jul 2015 00:39:56 +0000 (-0700) Subject: Revert 4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d, log individual measurements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca3084f54b62ce06c6e70a6e1daafeb5e3317c12;p=binutils-gdb.git 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. --- 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))