aboutsummaryrefslogtreecommitdiffstats
path: root/test/bench/profiler.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-17 07:35:12 +1200
committerGitHub <noreply@github.com>2018-04-17 07:35:12 +1200
commit754cb6cac9b1db56e2221fa379db014856a4725d (patch)
tree3eae65bfb213e549531fa21dfb4edb4e8ce58410 /test/bench/profiler.py
parent5f74adc2df6d2a9452a9e3a6923fe05ba579e9e6 (diff)
parent565146311a5f7939f107af12a91d94f5f96d56fc (diff)
downloadmitmproxy-754cb6cac9b1db56e2221fa379db014856a4725d.tar.gz
mitmproxy-754cb6cac9b1db56e2221fa379db014856a4725d.tar.bz2
mitmproxy-754cb6cac9b1db56e2221fa379db014856a4725d.zip
Merge pull request #3048 from cortesi/qbench
Improve benchmarking
Diffstat (limited to 'test/bench/profiler.py')
-rw-r--r--test/bench/profiler.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/bench/profiler.py b/test/bench/profiler.py
deleted file mode 100644
index 9072e17d..00000000
--- a/test/bench/profiler.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import cProfile
-from mitmproxy import ctx
-
-
-class Profile:
- """
- A simple profiler addon.
- """
- def __init__(self):
- self.pr = cProfile.Profile()
-
- def load(self, loader):
- loader.add_option(
- "profile_path",
- str,
- "/tmp/profile",
- "Destination for the run profile, saved at exit"
- )
- self.pr.enable()
-
- def done(self):
- self.pr.dump_stats(ctx.options.profile_path)
-
-
-addons = [Profile()] \ No newline at end of file