MCPcopy Create free account
hub / github.com/PostHog/duckgres / ParseProfilingOutput

Function ParseProfilingOutput

server/observe/tracing.go:66–68  ·  view source on GitHub ↗

ParseProfilingOutput extracts the full profiling tree from DuckDB's JSON output. Exposed for the integration test in package server, which captures real DuckDB profiling JSON and verifies our parser handles it.

(jsonStr string)

Source from the content-addressed store, hash-verified

64// output. Exposed for the integration test in package server, which captures
65// real DuckDB profiling JSON and verifies our parser handles it.
66func ParseProfilingOutput(jsonStr string) (profilingRoot, bool) {
67 return parseProfilingOutput(jsonStr)
68}
69
70// parseProfilingOutput is the internal worker — kept private so the rest of
71// observe can switch on the lowercase type without exposing it.

Calls 1

parseProfilingOutputFunction · 0.85