File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 33### Install
44` pip install scalene `
55
6- ### Run
7- ` scalene <yourapp.py> `
6+ ### Run (on CLI)
7+ ` $ scalene <yourapp.py>`
88
99### Example output
1010
1111If you run the ` mlp.py `
1212
13- ` scalene mlp.py `
13+ ` $ scalene mlp.py`
1414
1515You may see something like,
1616
1717![ scalene-1] ( https://raw.githubusercontent.com/tirthajyoti/Machine-Learning-with-Python/master/Memory-profiling/Scalene/scalene-1.PNG )
18+
19+ ### Features
20+ Here are some of the cool features of Scalene. Most of them are self-explanatory and can be gauged from the screenshot above,
21+
22+ - ** Lines or functions** : Reports information both for entire functions and for every independent code line
23+ - ** Threads** : It supports Python threads.
24+ - ** Multiprocessing** : supports use of the multiprocessing library
25+ - ** Python vs. C time** : Scalene breaks out time spent in Python vs. native code (e.g., libraries)
26+ - ** System time** : It distinguishes system time (e.g., sleeping or performing I/O operations)
27+ - ** GPU** : It also can report the time spent on an NVIDIA GPU (if present)
28+ - ** Copy volume** : It reports MBs of data being copied per second
29+ - ** Detects leaks** : Scalene can automatically pinpoint lines responsible for likely memory leaks!
You can’t perform that action at this time.
0 commit comments