Tag: profile
-
Python Libs – Why “profile” can’t be context manager?
Why Python standard library “profile” can’t be context manager like this import profile with profile.Profile(): fib(10) Zero, what is “profile” module in Python? According to Python 3 Documentation: profile, a pure Python module whose interface is imitated by cProfile, but which adds significant overhead to profiled programs. If you’re trying to extend the profiler…