mirror of
https://github.com/romanz/amodem.git
synced 2026-03-20 01:06:04 +08:00
remove unused profiling module
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import cProfile
|
||||
import contextlib
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def save(filename=None):
|
||||
if filename:
|
||||
pr = cProfile.Profile()
|
||||
pr.enable()
|
||||
yield
|
||||
pr.disable()
|
||||
pr.dump_stats(filename)
|
||||
else:
|
||||
yield
|
||||
Reference in New Issue
Block a user