Revert 4fd4095a5ffe3d4e50e0dac5f8ad37b8478afa9d, log individual measurements.
authorDoug Evans <xdje42@gmail.com>
Sat, 25 Jul 2015 00:39:56 +0000 (17:39 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 25 Jul 2015 00:42:18 +0000 (17:42 -0700)
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
gdb/testsuite/gdb.perf/lib/perftest/measure.py

index 5371caeb09e5daa9880e4a938d04587a3c86a367..3a00c23dd95e8252ef267507d0c05f923484918c 100644 (file)
        * lib/gdb.exp (gdb_compile): Undo debian's change in default of
        --as-needed.
 
-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 f14b87fc865080a97884bf102fc033245312b7df..f0ecd48b35634cfc7b5ba03d1f555449d11b97db 100644 (file)
@@ -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))