summaryrefslogtreecommitdiff
path: root/test/lib/profiling.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-02 14:23:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-02 14:23:42 -0500
commit350aed3fdb9f1e73e69655e53f44ca6a91c196da (patch)
tree3d2a128667b5f6ca6d0b4e1f4865fc98aac6b60b /test/lib/profiling.py
parent71f92436bdc86f30e2c21d8f5244733601e8c39e (diff)
downloadsqlalchemy-350aed3fdb9f1e73e69655e53f44ca6a91c196da.tar.gz
- whitespace removal bonanza
Diffstat (limited to 'test/lib/profiling.py')
-rw-r--r--test/lib/profiling.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lib/profiling.py b/test/lib/profiling.py
index 8676adf01..bac9e549f 100644
--- a/test/lib/profiling.py
+++ b/test/lib/profiling.py
@@ -41,7 +41,7 @@ def profiled(target=None, **target_opts):
all_targets.add(target)
filename = "%s.prof" % target
-
+
@decorator
def decorate(fn, *args, **kw):
if (target not in profile_config['targets'] and
@@ -50,7 +50,7 @@ def profiled(target=None, **target_opts):
elapsed, load_stats, result = _profile(
filename, fn, *args, **kw)
-
+
graphic = target_opts.get('graphic', profile_config['graphic'])
if graphic:
os.system("runsnake %s" % filename)
@@ -68,17 +68,17 @@ def profiled(target=None, **target_opts):
stats.print_stats(limit)
else:
stats.print_stats()
-
+
print_callers = target_opts.get('print_callers',
profile_config['print_callers'])
if print_callers:
stats.print_callers()
-
+
print_callees = target_opts.get('print_callees',
profile_config['print_callees'])
if print_callees:
stats.print_callees()
-
+
os.unlink(filename)
return result
return decorate
@@ -113,7 +113,7 @@ def function_call_count(count=None, versions={}, variance=0.05):
cextension = True
except ImportError:
cextension = False
-
+
while version_info:
version = '.'.join([str(v) for v in version_info])
if cextension and (version + "+cextension") in versions:
@@ -129,7 +129,7 @@ def function_call_count(count=None, versions={}, variance=0.05):
if count is None:
print "Warning: no function call count specified for version: '%s'" % py_version
return lambda fn: fn
-
+
@decorator
def decorate(fn, *args, **kw):
try: