May 2017
Intermediate to advanced
270 pages
6h 18m
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 ...
Read now
Unlock full access