{"schemaVersion":1,"resourceType":"connector","slug":"pprof","name":"pprof","catalog":"pprof","description":"Decode Go, gperftools, Parca and py-spy pprof profiles into SQL rows for flamegraph diffs and CI performance-regression gates","language":"Rust","categories":["devtools"],"repository":"https://github.com/Query-farm/vgi-pprof","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.1","publishedAt":"2026-11-25T21:37:48Z","url":"https://github.com/Query-farm/vgi-pprof/releases/tag/v0.5.1"},"links":{"html":"https://query.farm/products/orchard/connectors/pprof/","llms":"https://query.farm/products/orchard/connectors/pprof/llms.txt","markdown":"https://query.farm/products/orchard/connectors/pprof/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/pprof.json","objects":"https://query.farm/products/orchard/api/v1/connectors/pprof/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=pprof&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'pprof' AS pprof (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-pprof'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'pprof' AS pprof (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-pprof:0.5.1'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'pprof' AS pprof (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-pprof@v0.5.1'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'pprof' AS pprof (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-pprof:0.5.1'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-pprof","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=pprof","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'pprof' AS pprof (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-pprof'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"See what you can query","sql":"SELECT fn, sum(cpu_ns) AS cpu_ns FROM (SELECT frame[1].function AS fn, value[2] AS cpu_ns FROM pprof.main.stacks(from_base64('H4sIAAAAAAAA/yzQPU7rQBAH8Lcfjidr63kUIbAokOXKchFLW3EECgpqKoyJQkTiXWUT0U7HBRAtCCGgocgN0nMFKigouATaFc1/Zn4z1SgJDLmSIFCOUiUEZ3iAdPPyf5SA30W4vdvwfQSGRMRzoi2vokNWZsCQ5fRAvPR3aZkB9/AYgONumYHw8BRAYF1mID08B5AY1woYDvJBEVeqVsARciiG1U6tQKDKVTGsqlqBxCRPirSK9D8du3Zh5xOno86s+5UWnV3rpG974yad6S+cHjVrt2zmpmvnzfmsb1pr9XDRzvqxDx2Hdmr+7Nosr3Ts01sa7NKsjo2xWoXJtks30RDKeGqOiF43X/ff73sndPvzIU7D687o7VNa8RsAAP//CRIJN04BAAA=')) WHERE error IS NULL UNION ALL SELECT frame[1].function, value[2] FROM pprof.main.stacks(from_base64('H4sIAAAAAAAA/yzQvU7DQAwHcO4jjXuJFKtCEDGgKFOUoZFu4hEYGJiZCKEqFW3u1GvF6ocAVhBCiIWhb9CdV2CCgYGZHd2J5W/7Z09WEhhyJUGgHKVKCM7wEOnutx4l4HcRbu83/ACBIRHxnGjLq+iIlRkwZDk9Ei/9XVpmwD08BeC4V2YgPDwHEFiXGUgPLwEkxrUChoN8UMSVqhVwhByKYbVbKxCoclUMq6pWIDHJkyKtIr2jY9cu7HzidNSZdb/SorNrnfRtb9ykM/2l06Nm7ZbN3HTtvLmY9U1rrR4u2lk/9qHj0E7Nv92Y5bWOfXpLg12Z1YkxVqsw2XbpJhpCGU/NMdHr5uvh+33/lG5/PsRZeN05vX1KK/4CAAD//2pKKrROAQAA')) WHERE error IS NULL) GROUP BY fn ORDER BY cpu_ns DESC, fn LIMIT 20","requiresCredentials":null,"note":null,"objects":[{"name":"pprof.main.stacks","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/pprof/#obj-main-stacks","markdown":"https://query.farm/products/orchard/connectors/pprof/objects/table_function.bWFpbg.c3RhY2tz.md","json":"https://query.farm/products/orchard/api/v1/connectors/pprof/objects/table_function.bWFpbg.c3RhY2tz.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:16:30+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.1","sample":{"columns":["fn","cpu_ns"],"types":["VARCHAR","HUGEINT"],"rows":[["main.hotLoop",120000000],["main.parse",10000000]],"more":false}},"artifact":null},"objects":{"total":7,"index":"https://query.farm/products/orchard/api/v1/connectors/pprof/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=pprof&q={query}"},"agentTasks":["The file data/go_cpu.pb.gz is a Go CPU profile. Which leaf function has the most total CPU time? CPU nanoseconds is the second sample value. Return one row with a column named fn and a column named cpu_ns.","data/go_heap.pb.gz is a Go heap profile. How many distinct sample value types does it carry? Return one row with a single column named n.","data/native.pb.gz is an unsymbolized native profile. List the build ids of its mappings that have one, so they can be symbolized. Return a column named build_id.","Compare two CPU profiles data/go_cpu.pb.gz (baseline) and data/go_cpu2.pb.gz (candidate): for the busiest leaf function in the candidate, return its name and the CPU-nanosecond delta (candidate minus baseline). Return columns fn and delta.","data/go_cpu.pb.gz is a Go CPU profile. How many samples (recorded stack traces) does it contain? Return one row with a single column named n.","How many rows does the function table of data/go_cpu.pb.gz have (the number of distinct symbolized functions in the profile)? Return one row with a single column named n.","In data/go_cpu.pb.gz, across all locations, what is the greatest number of line-table entries on any single location (the deepest inlining the compiler folded into one instruction address)? Return one row with a single column named max_inline.","Using the worker's built-in reference guide of pprof sample value types, which value index carries CPU time measured in nanoseconds for a Go 'cpu' profile? Return one row with a single column named value_index."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-pprof","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":15,"passed":15,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-pprof@v0.5.1","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:15:52+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}