gograph_hotspot
Identify code hotspots using structural call complexity and dependency metrics for performance audits and architectural simplification.
Instructions
Locate code hotspots by combining structural call complexity and incoming dependency metrics. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when conducting performance audits, locating architectural coupling hotspots, or planning structural simplification. Do NOT use for single-package metrics (use gograph_focus instead). COMPLETENESS: Returns a prioritized list of hotspot packages, complexity counts, and caller metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_tests | No | Include call edges from *_test.go files. Default false — production fan-in only, otherwise test helpers (baseReq, newTestFoo, etc.) tend to dominate rankings in test-heavy codebases. | |
| top | No | Number of results to return (default: 10, 0 = all) |