forked from p15670423/monkey
Small profiling decorator improvement
This commit is contained in:
parent
80776f2b1d
commit
6a13fa90e6
|
@ -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