Commit b2f4f373 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

Add documentation about profiling

parent 8cfa5c1e
Pipeline #18903 failed with stages
in 2 minutes and 45 seconds
......@@ -127,3 +127,21 @@ For the moment you can:
> **Note**: You can also execute the scripts locally from a `pipenv shell` for instance. You need to make
sure that you change the way to log to postgres since the access is different from your machine compared to
from a container.
## Dev tips
#### Profiling code
from metagenedb.common.utils.profiling import profile
def my_function(a, b, c):
snakeviz /my/file/path
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment