eitey - HitLens - Live Code Hit Counts in Rider

In Short:

See which C++ functions and lines run, and how often, live in Rider or Visual Studio. Green, yellow and red by how often they run, even per server and client in multiplayer. No macros, no setup.

How To Use:

Press Play and watch your C++ light up.

HitLens shows which functions and lines of the file you're looking at run while your game plays, and how often, right inside JetBrains Rider or Visual Studio. Lines turn green, yellow or red by how often they run, with a live "60/s · 18,240 hits" count at the end of each line. Code that never ran stays plain.

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 also 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.

GET STARTED

1. Enable HitLens in Edit > Plugins and restart the editor.

2. Install the free HitLens plugin for your IDE:

Rider: https://plugins.jetbrains.com/plugin/35406-hitlens

Visual Studio: Extensions > Manage Extensions, search "HitLens"

3. Open a C++ file of your project and press Play.

Pick Functions or Lines with the checkboxes next to the Play button.

COLOURS

Green = ran now and then. Yellow = 2+ times a second. Red = 30+ times a second (about every frame).

No macros, no rebuilds, no code changes. Only the file you're looking at is tracked, so your game stays fast. Works with Live Coding. Talks to your IDE on your own PC only (127.0.0.1), no internet, no telemetry. Compiles out of Shipping builds.