Skip to content

Commit

Permalink
fix(python): update profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Jun 15, 2023
1 parent a084185 commit cb3f1b2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Programming-Languages/Python/Performance Analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Profiler

```bash
python3 -m cProfile -o log.pstats -m my_module
```

## Visualisation

### gprof2dot (Dot Diagram)

```bash
sudo pacman -S graphviz
pip3 install gprof2dot
```

```bash
gprof2dot -f pstats log.pstats | dot -Tsvg -o log.svg
```

0 comments on commit cb3f1b2

Please sign in to comment.