To perform both line-level CPU and memory profiling, you first need to build the specialized memory allocator by running make: % make The following command will run Scalene to only perform line-level CPU profiling on a provided example program. To take advantage of its memory profiling capability, you will need to download this repository.
Pycharm profiler install#
NOTE: Currently, installing Scalene in this way does not install its memory profiling library, so you will only be able to use it to perform CPU profiling. You can install it as follows: % pip install scalene
Scalene is a high-performance CPU and memory profiler for Python that does a few things that other Python profilers do not and cannot do.