Ninja
Metric Struct Reference

The Metrics module is used for the debug mode that dumps timing stats of various actions. More...

#include <metrics.h>

Public Attributes

int count
 Number of times we've hit the code path.
 
std::string name
 
int64_t sum
 Total time (in platform-dependent units) we've spent on the code path.
 

Detailed Description

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".

Definition at line 27 of file metrics.h.

Member Data Documentation

◆ count

int Metric::count

Number of times we've hit the code path.

Definition at line 30 of file metrics.h.

Referenced by Metrics::NewMetric(), and Metrics::Report().

◆ name

std::string Metric::name

Definition at line 28 of file metrics.h.

Referenced by Metrics::NewMetric(), and Metrics::Report().

◆ sum

int64_t Metric::sum

Total time (in platform-dependent units) we've spent on the code path.

Definition at line 32 of file metrics.h.

Referenced by Metrics::NewMetric(), and Metrics::Report().


The documentation for this struct was generated from the following file: