Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
metagenedb
Commits
b2f4f373
Commit
b2f4f373
authored
5 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation about profiling
parent
8cfa5c1e
No related branches found
Branches containing commit
No related tags found
2 merge requests
!59
Prod
,
!21
Try to fix the issue for gene length graph
Pipeline
#18903
failed with stages
Stage:
Stage:
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-0
18 additions, 0 deletions
README.md
with
18 additions
and
0 deletions
README.md
+
18
−
0
View file @
b2f4f373
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment