![](https://private-user-images.githubusercontent.com/1423657/376339569-46a5c546-7e9b-42c7-87f4-bc8defe674e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjI1NzAsIm5iZiI6MTczOTI2MjI3MCwicGF0aCI6Ii8xNDIzNjU3LzM3NjMzOTU2OS00NmE1YzU0Ni03ZTliLTQyYzctODdmNC1iYzhkZWZlNjc0ZTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDgyNDMwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWFmZWI4Y2RhZjlmODM1NzBmOTZkNGRkNzQ4OTU3NTQwYzhiOWJkMmUxYTU2NmRjZGMzYzcyYzEzYTEwYWQ2ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.c89l6kMHKWKgUeApE9Eog-baOwV_23YNeJXRP_af0LY)
This experimental extension adds pyroscope profiling features to DuckDB
For raw
pprof
generation use the pprof extension
INSTALL pyroscope FROM community;
LOAD pyroscope;
---- Start the tracer, requires backend Pyroscope URL
D SELECT * FROM trace_start('https://pyroscope:4000');
---- Run a bunch of heavy queries to stream results to Pyroscope/qryn
---- Stop the tracer. This might hang due to a bug in the pyroscope crate.
D SELECT * FROM trace_stop();
Create a Free
account on Grafana Cloud create a Token for Pyroscope profile sending and use the extension:
---- Start the tracer to Grafana Cloud Pyroscope
D SELECT * FROM trace_start('https://user:[email protected]');