Small profiling decorator improvement
This commit is contained in:
parent
9e27a93a3b
commit
aaf6a33f92
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
To profile specific methods on island a `@profile(sort_args=['cumulative'], print_args=[100])`
|
To profile specific methods on island a `@profile(sort_args=['cumulative'], print_args=[100])`
|
||||||
decorator can be used.
|
decorator can be used.
|
||||||
Use it as any other decorator. After decorated method is used, a file will appear in a
|
Use it as a parameterised decorator(`@profile()`). After decorated method is used, a file will appear in a
|
||||||
directory provided in `profiler_decorator.py`. Filename describes the path of
|
directory provided in `profiler_decorator.py`. Filename describes the path of
|
||||||
the method that was profiled. For example if method `monkey_island/cc/resources/netmap.get`
|
the method that was profiled. For example if method `monkey_island/cc/resources/netmap.get`
|
||||||
was profiled, then the results of this profiling will appear in
|
was profiled, then the results of this profiling will appear in
|
||||||
|
|
Loading…
Reference in New Issue