Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 12, 2024
1 parent 2ba32a8 commit b9e8292
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# DuckDB Pyroscope Extension
This experimental extension adds pyroscope profiling features to DuckDB

![duckdb_flamegraph](https://github.com/user-attachments/assets/9769ca8c-9839-41d8-8dcc-c468c0637771)

> For raw `pprof` generation use the [pprof extension](https://github.com/quackscience/duckdb-extension-pprof)
### Install
Expand All @@ -14,14 +16,16 @@ LOAD pyroscope;
### Usage

```sql
---- Start the tracer, requires backend URL
---- Start the tracer, requires backend Pyroscope URL
D SELECT * FROM trace_start('https://pyroscope:4000');

---- Run a bunch of queries to stream results to Pyroscope/qryn
---- Run a bunch of heavy queries to stream results to Pyroscope/qryn

---- Stop the tracer
---- Stop the tracer. This might hang due to a bug in the pyroscope crate.
D SELECT * FROM trace_stop();
```

## Glory Shot in Pyroscope
![image](https://github.com/user-attachments/assets/1992c8b8-dd29-4343-9a54-88363fa5fe8c)
<!-- ![image](https://github.com/user-attachments/assets/1992c8b8-dd29-4343-9a54-88363fa5fe8c) -->

![image](https://github.com/user-attachments/assets/b58e03e5-576e-42dc-a839-52629fdc0ac8)

0 comments on commit b9e8292

Please sign in to comment.