Real open-source codebases, pinned to a commit

Code Analysis Demos (analyzed 2026-11-03)

10 open-source repositories in 10 languages, pinned to a recorded commit, plus a metrics-only analysis of the full PViz product.

Prometheus

Go

Cloud-native monitoring system: Go backend with a TypeScript web UI

Prometheus's Go packages have no import cycles; every remaining cycle is in the web UI. The Go call graph resolves 40,354 call sites inside the repository, and the analysis now runs in 75.7 s instead of 363.5 s.

Source
prometheus/prometheus
a83f7158e7f0 (2026-10-26)
default-branch HEAD on the October 2026 analysis date (same commit as the October demo)
Analyzer
PViz analyzer (the engine hosted analyses use)
revision 7d6597af01e2 · [email protected]
Analysis
Run 2026-11-03, status complete
75.7 s, 913 MB peak memory (limit 1,792 MB)
Languages and parsing
go (full), javascript (full), typescript (full)
389 ok, 28 stub
417
Files analyzed
362,762
Source lines
9 / 17
Cycle groups / largest (files)
41,304
Calls resolved in repo (64% of the calls that could reach repo code)

Call resolution (127,174 call sites)

Resolved in the repository
41,304
To libraries or the standard library
62,136
Ambiguous (several possible targets)
8,480
Unresolved (could be repo code)
15,254

The rate above is resolved ÷ (resolved + ambiguous + unresolved). Calls to libraries and the standard library cannot reach this repository, so they are shown separately and left out of it. Test code is included in these counts.

What the analysis shows

FindingCycles are confined to the TypeScript UI

9 cycle groups, all in web/ui. The largest (17 files) is in the older React app's graph pages, including a vendored Flot plugin loaded through require calls in Graph.tsx. Go does not allow import cycles in production code, and test-only imports are left out of cycle detection.

FindingGo call graph and interface relationships

123,336 Go call sites were analyzed; 40,354 resolve to a function in the repository. The analyzer also records 962 type-to-interface relationships. The most widely called function is labels.FromStrings, used from 88 files.

FindingFrameworks and generated code

Detected: cobra, grpc_go, net_http, react, react_router, redux_toolkit, tanstack_query, vite. 5 generated Go files are identified as protobuf output, so they can be told apart from hand-written code.

FindingFoundational packages

discovery/targetgroup is imported by 35 packages. model/labels has no dependencies inside the repository and is imported by 32 packages.

Changed since OctoberSame graph, a fraction of the time

Re-analyzed with the current analyzer, the same commit gives the same files, module dependencies and cycles as the October demo (417 files, 1,194 module dependencies, 9 cycle groups). More calls resolve: 41,304 inside the repository, against 41,238 in October. The additional calls are in the TypeScript web UI, to imported functions; the Go side is unchanged. The analysis took 75.7 s with a peak of 913 MB (October: 363.5 s, 1,111 MB).

Largest cycle group

  • web/ui/react-app/src/hooks/useFetch.ts
  • web/ui/react-app/src/pages/alerts/AlertContents.tsx
  • web/ui/react-app/src/pages/alerts/CollapsibleAlertPanel.tsx
  • web/ui/react-app/src/pages/graph/DataTable.tsx
  • web/ui/react-app/src/pages/graph/Graph.tsx
  • web/ui/react-app/src/pages/graph/GraphControls.tsx
  • web/ui/react-app/src/pages/graph/GraphHeatmapHelpers.ts
  • web/ui/react-app/src/pages/graph/GraphHelpers.ts
  • web/ui/react-app/src/pages/graph/GraphTabContent.tsx
  • web/ui/react-app/src/pages/graph/HistogramChart.tsx
  • web/ui/react-app/src/pages/graph/Legend.tsx
  • web/ui/react-app/src/pages/graph/Panel.tsx
  • web/ui/react-app/src/pages/graph/PanelList.tsx
  • web/ui/react-app/src/pages/graph/SeriesName.tsx
  • web/ui/react-app/src/types/types.ts
  • web/ui/react-app/src/utils/index.ts
  • web/ui/react-app/src/vendor/flot/jquery.flot.heatmap.js

Most widely called symbols (calling files)

  • model/labels/labels_dedupelabels.go#FromStrings (88)
  • model/labels/labels_dedupelabels.go#EmptyLabels (60)
  • discovery/registry.go#RegisterConfig (35)
  • model/labels/labels_dedupelabels.go#Labels.Get (35)
  • promql/parser/parse.go#NewParser (34)
  • model/labels/labels_dedupelabels.go#Labels.Range (33)

Compared with the October 2026 demo

The same commit, analyzed again with the current analyzer. Both columns use the same definitions; differences come from analyzer changes, explained in the findings above where they matter. The October demo recorded only the resolved-call count, so the other call-resolution rows show the current analyzer only.

MeasureOctober 2026 demoCurrent analyzer
Files analyzed
graph nodes (Go: packages)
417417
Source lines (SLOC)
non-blank, non-comment lines of analyzed files
362,762362,762
Module dependencies
distinct file-to-file links, test-only and name-match links excluded
1,1941,194
Relationship records
all edge rows of every kind, including links to external symbols
2,3672,367
Cycle groups
groups of files that depend on each other
99
Largest cycle (files)
size of the largest cycle group
1717
Most-imported module
distinct production importers of the top module
35 (targetgroup)35 (targetgroup)
Call sites resolved in repo
calls resolved to a function inside the repository / all call sites
41,238 / 127,17441,304 / 127,174
Calls to libraries (external)
calls into other packages or the language's standard library
n/a62,136
Ambiguous calls
calls with several possible targets inside the repository
n/a8,480
Unresolved calls
calls that could reach repository code but were not pinned to a target
n/a15,254
Resolved of in-repo calls
resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository
n/a64%
Framework registrations
routes, handlers, hooks, entry points with resolution status
7070
Architectural zones
package-hierarchy zones
7979
Analysis time (s)
wall time of the analysis call
363.575.7
Peak memory (MB)
container memory peak during the analysis
1,111913

Limitations

  • Per-node importer counts in the bundle include every relationship row (calls, type references, constructions). discovery shows 124 rows from 36 packages; this page uses distinct counts.
  • Go nodes are packages, so file-level questions need the call graph or the source.
  • 12% of call sites stay unresolved, mostly method calls on values whose type is not resolved statically; 49% call into the standard library or third-party modules.
  • Static analysis records relationships visible in the source. It does not see dynamic loading, reflection, or behaviour at runtime; verify important conclusions in the code.

Download the analysis

A full bundle of a large repository exceeds many models' context windows; the focused slices below answer one question each in a fraction of the size.

Focused slices

All slices, readable and compressed, with the commands used (52 KB)

Ready to run this on your own codebase?

Hosted analyses use the same analyzer as this demo, within your usage limits.

Analyze your repo