Merge branch 'reflow'
[wolnelektury.git] / apps / wolnelektury_core / management / profile.py
diff --git a/apps/wolnelektury_core/management/profile.py b/apps/wolnelektury_core/management/profile.py
deleted file mode 100644 (file)
index 90e5ec5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-import cProfile
-import functools
-import os
-
-_object = None
-
-def profile(meth):
-    def _wrapper(self, *args, **kwargs):
-        object = self
-        setattr(object, "__%s" % meth.__name__, meth)
-        cProfile.runctx('object.__%s(object, *args, **kwargs)' % (meth.__name__, ), globals(), locals(),
-            "profile.%d" % os.getpid())
-
-    functools.update_wrapper(_wrapper, meth)
-    return _wrapper
-