https://github.com/quackscience/duckdb-extension-pprof
https://github.com/quackscience/duckdb-extension-pprof
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quackscience/duckdb-extension-pprof
- Owner: quackscience
- Created: 2024-12-09T02:08:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T19:27:40.000Z (over 1 year ago)
- Last Synced: 2025-04-01T06:42:23.832Z (12 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# DuckDB `pprof` Extension
This experimental extension adds pprof profiling and export features to DuckDB
### Build
```
make configure
make debug
```
### Test
```sql
D LOAD './build/debug/quack_pprof.duckdb_extension';
D SELECT * FROM trace_start();
┌──────────────────────────────────────────────────┐
│ status │
│ varchar │
├──────────────────────────────────────────────────┤
│ Profiling started with signal-safe configuration │
└──────────────────────────────────────────────────┘
--- Perform some actions...
D SELECT version();
┌─────────────┐
│ "version"() │
│ varchar │
├─────────────┤
│ v1.1.3 │
└─────────────┘
--- Check for results
D SELECT * FROM trace_results();
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ stack_trace │
│ varchar │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ FRAME: backtrace::backtrace::libunwind::trace -> backtrace::backtrace::trace_unsynchronized -> FRAME: