martensite-devtools
Telemetry spans, Tracy/Chrome GPU profiling timestamps, and in-app F12 developer diagnostics HUD for Martensite.
Overview
martensite-devtools provides real-time performance inspection, telemetry instrumentation, and visual diagnostics for the Martensite GUI framework.
When developing complex interfaces with high-density data visualizations, debugging frame drops and layout re-calculations requires deep insight into the rendering pipeline. martensite-devtools provides structured tracing spans across all subsystems (arena mutations, reactive propagation, Taffy layout passes, text shaping, and Vello GPU command recording), alongside an interactive in-app HUD toggled via F12.
The entire crate is built under #![forbid(unsafe_code)].
Key Features
- In-App Developer HUD (F12): Overlays live frame timing graphs, 99th percentile frame latency counters, and active draw-call counts directly onto the running window.
- Scenegraph & Arena Inspector: Real-time visualization of active
HotNodecount, allocated slot capacity, and dirty bitset states across the generationalWidgetArena. - Reactive Graph Telemetry: Tracks signal-to-memo dependency edges, detecting unnecessary cascade recalculations and scheduling bottlenecks.
- Profiling Exporters: Seamless export of GPU compute timestamps to Tracy and Chrome Tracing (
about:tracing) format. - 100% Safe Rust:
#![forbid(unsafe_code)]enforced.
Part of Martensite
This crate provides developer tooling and telemetry for the Martensite GUI framework. For top-level widgets and application integration, see martensite.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.