CallGraph Profiler
GPU-accelerated function call graph visualization with runtime profiling for Unity
com.callgraph-profiler 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/callgraph-profiler.git README Markdown
Copy this to your project's README.md
## Installation
Add **CallGraph Profiler** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/callgraph-profiler.git
```
[](https://www.pkglnk.dev/pkg/callgraph-profiler)Dependencies (2)
README
CallGraph Profiler
English | δΈζ
GPU-accelerated function call graph visualization with runtime profiling for Unity.
Analyze your C# assemblies at the IL level, visualize method call relationships as an interactive graph, and overlay runtime profiling data to find performance bottlenecks.

Key Features
- Static IL Analysis β Scans assemblies via Mono.Cecil to build a complete call graph
- GPU Layout Engine β Barnes-Hut force-directed layout with community-aware clustering
- GPU Instanced Rendering β Handles 50K+ nodes with SDF circles and line edges
- Community Detection β Louvain algorithm groups related methods automatically
- Runtime Profiling β Captures Deep Profiling data during Play Mode
- Stutter Detection β Highlights methods exceeding 16ms per frame
- Interactive Navigation β Pan, zoom, search, minimap, sub-graph drill-down
Installation
Unity Package Manager (Git URL)
- Open Window > Package Manager
- Click + > Add package from git URL...
- Enter:
https://github.com/ninja9998877/com.callgraph-profiler.git
Manual
Clone this repository into your project's Packages/ directory:
cd YourProject/Packages
git clone https://github.com/ninja9998877/com.callgraph-profiler.git
Requirements
- Unity 2022.3 LTS or later
- GPU with Compute Shader support (Shader Model 4.5+)
Getting Started
- Open Window > Analysis > CallGraph Profiler
- Select assemblies and click Analyze
- Enter Play Mode to capture runtime data
See Documentation for full usage guide.
Architecture
Editor/
Core/ CSR compressed sparse row graph (50K nodes + 10M edges ~ 185MB)
Analysis/ Mono.Cecil IL static analysis + assembly watching
Layout/ GPU Barnes-Hut force-directed + Louvain community detection
Rendering/ GPU Instanced SDF nodes + line edges + LOD + viewport culling
Profiling/ Unity Profiler bridge + optional IL injection
UI/ EditorWindow + toolbar + minimap + inspector
Shaders/ 6 GPU shaders (compute + rendering)
Runtime/ IL injection probe callbacks
Tests/ 30+ unit tests
License
This project is licensed under the GNU Affero General Public License v3.0.
A commercial license is available for teams that cannot comply with AGPL-3.0 requirements. Contact KachanAli for inquiries.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In