closes #6219
[arvados.git] / sdk / python / tests / performance / performance_profiler.py
index a36ce254dd17797970121905db77d55f59f088f5..afa53ae73c0d2eb5231054889eedbcc3563c202d 100644 (file)
@@ -42,8 +42,8 @@ def profiled(function):
             caught = e
         pr.disable()
         ps = pstats.Stats(pr, stream=outfile)
-        ps.print_stats()
+        ps.sort_stats('time').print_stats()
         if caught:
-            raise caught
+            raise
         return ret
     return profiled_function