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)
| 64 | // output. Exposed for the integration test in package server, which captures |
| 65 | // real DuckDB profiling JSON and verifies our parser handles it. |
| 66 | func 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. |