Prometheus
GoCloud-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.
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
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.
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.
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.
discovery/targetgroup is imported by 35 packages. model/labels has no dependencies inside the repository and is imported by 32 packages.
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.
| Measure | October 2026 demo | Current analyzer |
|---|---|---|
Files analyzed graph nodes (Go: packages) | 417 | 417 |
Source lines (SLOC) non-blank, non-comment lines of analyzed files | 362,762 | 362,762 |
Module dependencies distinct file-to-file links, test-only and name-match links excluded | 1,194 | 1,194 |
Relationship records all edge rows of every kind, including links to external symbols | 2,367 | 2,367 |
Cycle groups groups of files that depend on each other | 9 | 9 |
Largest cycle (files) size of the largest cycle group | 17 | 17 |
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,174 | 41,304 / 127,174 |
Calls to libraries (external) calls into other packages or the language's standard library | n/a | 62,136 |
Ambiguous calls calls with several possible targets inside the repository | n/a | 8,480 |
Unresolved calls calls that could reach repository code but were not pinned to a target | n/a | 15,254 |
Resolved of in-repo calls resolved / (resolved + ambiguous + unresolved): external calls cannot reach the repository | n/a | 64% |
Framework registrations routes, handlers, hooks, entry points with resolution status | 70 | 70 |
Architectural zones package-hierarchy zones | 79 | 79 |
Analysis time (s) wall time of the analysis call | 363.5 | 75.7 |
Peak memory (MB) container memory peak during the analysis | 1,111 | 913 |
Limitations
- Per-node importer counts in the bundle include every relationship row (calls, type references, constructions).
discoveryshows 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
Every cycle group with its members and size.
scc-summary
The most depended-on and most dependent files, with the reasons they rank high.
hub-summary
Everything that depends on the main hub, two levels deep.
blast-radius
Test-side callers reachable from the most-called symbol (see limitations).
affected-tests
Detected frameworks and how their registrations were resolved.
framework-summary
Resolved calls to the most-called symbol, with call sites.
call-diagnostics
Ready to run this on your own codebase?
Hosted analyses use the same analyzer as this demo, within your usage limits.