Ninja
Public Attributes | List of all members
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. More...
 
string name
 
int64_t sum
 Total time (in micros) we've spent on the code path. More...
 

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 28 of file metrics.h.

Member Data Documentation

int Metric::count

Number of times we've hit the code path.

Definition at line 31 of file metrics.h.

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

string Metric::name

Definition at line 29 of file metrics.h.

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

int64_t Metric::sum

Total time (in micros) we've spent on the code path.

Definition at line 33 of file metrics.h.

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


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