An open API service indexing awesome lists of open source software.

https://github.com/quackscience/duckdb-extension-pprof


https://github.com/quackscience/duckdb-extension-pprof

Last synced: 7 months ago
JSON representation

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: