Module ninja_build::metrics [] [src]

Structs

Metric

The Metrics module is used for the debug mode that dumps timing stats of various actions. To use, see METRIC_RECORD below. A single metrics we're tracking, like "depfile load time".

Metrics

The singleton that stores metrics and prints the report.

ScopedMetric

A scoped object for recording a metric across the body of a function. Used by the METRIC_RECORD macro.

Stopwatch

A simple stopwatch which returns the time in seconds since Restart() was called.

Functions

get_time_millis

Get the current time as relative to some epoch. Epoch varies between platforms; only useful for measuring elapsed time.