LeanProfiler

3.7. Trace Event units🔗

The summary stores integer nanoseconds and declares a monotonic clock. Trace Event uses microseconds, so the exporter writes fractional microseconds:

1234 ns  →  "ts": 1.234
4567 ns  →  "dur": 4.567

The event arguments retain the original integer start_ns and duration_ns. displayTimeUnit: "ns" asks a viewer to show fine-grained values; it does not change Trace Event's required units.