]> Git Repo - binutils.git/blobdiff - gdb/testsuite/gdb.perf/backtrace.py
Automatic date update in version.in
[binutils.git] / gdb / testsuite / gdb.perf / backtrace.py
index 77e78636783847837a3db5d8c4bbc37355ea26c1..89893173d9f8e995f4ec120536841cd18f2b8815 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2014 Free Software Foundation, Inc.
+# Copyright (C) 2013-2022 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 from perftest import perftest
 
-class BackTrace (perftest.TestCaseWithBasicMeasurements):
+
+class BackTrace(perftest.TestCaseWithBasicMeasurements):
     def __init__(self, depth):
-        super (BackTrace, self).__init__ ("backtrace")
+        super(BackTrace, self).__init__("backtrace")
         self.depth = depth
 
     def warm_up(self):
         # Warm up.
-        gdb.execute ("bt", False, True)
-        gdb.execute ("bt", False, True)
+        gdb.execute("bt", False, True)
+        gdb.execute("bt", False, True)
 
     def _do_test(self):
         """Do backtrace multiple times."""
         do_test_command = "bt %d" % self.depth
         for _ in range(1, 15):
-            gdb.execute (do_test_command, False, True)
+            gdb.execute(do_test_command, False, True)
 
     def execute_test(self):
 
@@ -40,8 +41,8 @@ class BackTrace (perftest.TestCaseWithBasicMeasurements):
             line_size_command = "set dcache line-size %d" % (line_size)
             size_command = "set dcache size %d" % (4096 * 64 / line_size)
             # Cache is cleared by changing line-size or size.
-            gdb.execute (line_size_command)
-            gdb.execute (size_command)
+            gdb.execute(line_size_command)
+            gdb.execute(size_command)
 
             func = lambda: self._do_test()
 
This page took 0.028398 seconds and 4 git commands to generate.