Commit 03a9088
committed
feat(peak): adds --func optional argument
Filter the peak memory usage by function. This doesn't isolate the
contribution of the function by itself, but it screens out noise
from setting up the test so an accurate result can be obtained
by mprof peak if the test is otherwise well isolated.
Example usage:
mprof peak --func some.function
The function name is the fully qualified python import name.
You can also figure it out by grepping the dat file for FUNC
entries.1 parent 0d21b8d commit 03a9088
1 file changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
838 | 858 | | |
839 | 859 | | |
840 | 860 | | |
841 | 861 | | |
842 | 862 | | |
843 | 863 | | |
844 | 864 | | |
| 865 | + | |
| 866 | + | |
845 | 867 | | |
846 | 868 | | |
847 | 869 | | |
848 | 870 | | |
849 | 871 | | |
850 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
851 | 879 | | |
852 | 880 | | |
853 | 881 | | |
| |||
0 commit comments