Go to the documentation of this file.
15 #ifndef NINJA_METRICS_H_
16 #define NINJA_METRICS_H_
52 Metric* NewMetric(
const string& name);
73 return 1e-6 *
static_cast<double>(Now() - started_);
85 #define METRIC_RECORD(name) \
86 static Metric* metrics_h_metric = \
87 g_metrics ? g_metrics->NewMetric(name) : NULL; \
88 ScopedMetric metrics_h_scoped(metrics_h_metric);
92 #endif // NINJA_METRICS_H_