diff options
Diffstat (limited to 'test/bench/profiler.py')
-rw-r--r-- | test/bench/profiler.py | 25 |
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 |