HitLens shows which C++ functions and lines run while your game plays, and how often, right inside JetBrains Rider or Visual Studio.
Press Play and every line that runs gets a live count like 60/s · 18,240 hits:
Green: runs now and then
Yellow: 2+ times a second
Red: 30+ times a second (about every frame)
One glance answers what you’d normally need breakpoints or log spam for:
- Does my key press even reach this function?
- Is this running every frame?
- Which branch of this if/else actually runs?
- Is this running on the server, or on a client?
Multiplayer
Each line shows who ran it: Server: 60 · Client 1: 60 · Client 2: 60. Works in Play In Editor and Standalone Game, with a listen or dedicated server.
No setup
- No macros, no code changes, no rebuild. Works with Live Coding.
- Only the file you’re looking at is tracked, so your game stays fast.
- Local only (127.0.0.1), no internet, no telemetry.
- Compiles out of Shipping builds.
Get started
- Enable HitLens in Edit > Plugins and restart the editor.
- Install the free IDE extension:
- Rider: https://plugins.jetbrains.com/plugin/35406-hitlens
- Visual Studio: Extensions > Manage Extensions, search “HitLens”
- Open a C++ file of your project and press Play.
Good to know
- Tracks your project’s C++ code (including project plugins), not engine source.
- Inlined functions can’t be seen. Put
HIT();at the top of a function to always count it. - A few very short lines (like a bare
return;) can’t be tracked safely and stay plain.
Requirements
Windows · Unreal Engine 5+ · Rider or Visual Studio 2022 / 2026
Get it on Fab: HitLens - Live Code Hit Counts in Rider | Fab
I’ll use this thread for support and updates, so ask anything here. Bugs or questions: [your email]