Small profiling decorator improvement

This commit is contained in:
VakarisZ 2021-03-16 16:51:21 +02:00
parent 9e27a93a3b
commit aaf6a33f92
1 changed files with 1 additions and 1 deletions

View File

@ -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