pythonprofilers / memory_profiler

Monitor Memory usage of Python code
http://pypi.python.org/pypi/memory_profiler
Other
4.39k stars 380 forks source link

Profiling nested import #284

Open boazin opened 4 years ago

boazin commented 4 years ago

Not really an issue but a question on the tool capabilities.

Do I have a way of memory profiling a nested import chain?

I have a fairly large app - that as usual starts with: from foo import bar from x import y from z import w

And inside each foo/x/z there are more imports.

I'm trying to pinpoint the memory painful imports. Can memory_profiler help me in this case?