# Lshaz: possible useful tool for development?

**URL:** <https://internals.rust-lang.org/t/lshaz-possible-useful-tool-for-development/24108>\
**Category:** compiler\
**Created:** [March 24, 2026, 12:25am UTC](https://internals.rust-lang.org/t/lshaz-possible-useful-tool-for-development/24108 "2026-03-24T00:25:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clin1234](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/clin1234/32/13972_2.png) [@clin1234](https://internals.rust-lang.org/u/clin1234)\
**Post date:** [March 24, 2026, 12:25am UTC](https://internals.rust-lang.org/t/lshaz-possible-useful-tool-for-development/24108/1 "2026-03-24T00:25:34Z")

</div>

I’ve come across this tool: [GitHub - abokhalill/lshaz: Find the microarchitectural performance bugs hiding in your C++ code · GitHub](https://github.com/abokhalill/lshaz#ci-integration)

It claims to detect latency hazards at compile-time: struct layouts that span cache lines, atomics that trigger cross-core invalidation storms, heap allocations in hot loops, virtual dispatch that defeats branch prediction, etc.

Granted, it seems oriented towards x64, but it claims to also support arm64. In addition, it has GH workflow files to run this tool on PRs.
