February 2019
Intermediate to advanced
672 pages
16h 50m
English
In some cases, high memory usage constitutes an issue. For example, if we want to handle a huge number of particles, we will incur a memory overhead due to the creation of many Particle instances.
The memory_profiler module summarizes, in a way similar to line_profiler, the memory usage of the process.
Just like line_profiler, memory_profiler also requires the instrumentation of the source code by placing a @profile decorator on the function we intend to monitor. In ...