r/cpp • • Jan 29 '26

Cache Explorer: a visual and interactive profiler that shows you exactly which lines of code cause cache misses

Built a visual cache profiler that uses LLVM instrumentation + simulation to show you exactly which lines cause L1/L2/L3 misses in your C and C++ code (Rust support in active development).

  • Hardware-validated accuracy (±4.6% L1, ±9.3% L2 vs Intel perf)
  • Source-level attribution (not just assembly)
  • False sharing detection for multi-threaded code
  • 14 hardware presets (Intel/AMD/ARM/Apple Silicon)
  • MESI cache coherence simulation

It's like Compiler Explorer but for cache behavior, providing instant visual feedback on memory access patterns. MIT licensed, looking for feedback on what would make it more useful or even just things you like about it.

GitHub

243 Upvotes

18 comments sorted by

View all comments

68

u/Excellent-Might-7264 Jan 30 '26

How much has claude written, and how much is developed by you?

Question based on https://github.com/AveryClapp/Cache-Explorer/commit/9cf75144fa47583eff3cf1883c37dc11d8abec30

11

u/ShoppingQuirky4189 Jan 30 '26

Fair question! I started this project over winter break and it began with me writing every line of code by hand. However, I eventually pivoted to I guess what some would consider a more "modern" approach, being the driver behind Claude. I make the design decisions, plan architecture, debug, etc. but if I know what needs to be done, then I just use Claude to implement it.

-7

u/thisismyfavoritename Jan 31 '26

Lol. unnecessary