Skip to content

Commit

Permalink
Instructions to generate speedscope profiles using py-spy (#5814)
Browse files Browse the repository at this point in the history
[Preview](https://docs-getdbt-com-git-dbeatty10-patch-2-dbt-labs.vercel.app/reference/global-configs/record-timing-info)

## What are you changing in this pull request and why?
Officially documenting the performance profiling approach mentioned in
dbt-labs/dbt-core#10434 (comment).

## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
  • Loading branch information
dbeatty10 authored Jul 20, 2024
1 parent a529ff4 commit 685939c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/docs/reference/global-configs/record-timing-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ $ snakeviz timing.txt
```

</File>

Alternatively, you can use [`py-spy`](https://github.com/benfred/py-spy) to collect [speedscope](https://github.com/jlfwong/speedscope) profiles of dbt commands like this:

```shell
python -m pip install py-spy
sudo py-spy record -s -f speedscope -- dbt parse
```

0 comments on commit 685939c

Please sign in to comment.