Skip to content
Snippets Groups Projects
Commit b2f4f373 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion :recycle:
Browse files

Add documentation about profiling

parent 8cfa5c1e
No related branches found
No related tags found
2 merge requests!59Prod,!21Try to fix the issue for gene length graph
Pipeline #18903 failed with stages
in 2 minutes and 45 seconds
...@@ -127,3 +127,21 @@ For the moment you can: ...@@ -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 > **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 sure that you change the way to log to postgres since the access is different from your machine compared to
from a container. from a container.
-----
## Dev tips
#### Profiling code
```python
from metagenedb.common.utils.profiling import profile
@profile("/my/file/path")
def my_function(a, b, c):
...
```
```bash
snakeviz /my/file/path
```
\ No newline at end of file
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