mprof Python

 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

Popular posts from this blog

QTreeView and QTableView dynamic changes

C++ strings and string_view