New blog location
New blog location
To check memory usage of a Python script, can install the memory_profiler library through pip
Usage:
mprof run --include-children <executable>
mprof plot
To check performance of specific function, decorate that function with @profile and run the above mprof commands
Comments
Post a Comment