X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/153bc4288d5941dafcaca24fe1f4859419d744e0..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/apps/wolnelektury_core/management/profile.py?ds=inline diff --git a/apps/wolnelektury_core/management/profile.py b/apps/wolnelektury_core/management/profile.py deleted file mode 100644 index a68453d05..000000000 --- a/apps/wolnelektury_core/management/profile.py +++ /dev/null @@ -1,16 +0,0 @@ - -import cProfile -import functools - -_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(), - "wlprofile") - - functools.update_wrapper(_wrapper, meth) - return _wrapper -