#include <string>
#include <vector>
#include "util.h"
Go to the source code of this file.
|
| struct | Metric |
| | The Metrics module is used for the debug mode that dumps timing stats of various actions. More...
|
| |
| struct | Metrics |
| | The singleton that stores metrics and prints the report. More...
|
| |
| struct | ScopedMetric |
| | A scoped object for recording a metric across the body of a function. More...
|
| |
| struct | Stopwatch |
| | A simple stopwatch which returns the time in seconds since Restart() was called. More...
|
| |
◆ METRIC_RECORD
| #define METRIC_RECORD |
( |
|
name | ) |
|
Value: static Metric* metrics_h_metric = \
ScopedMetric metrics_h_scoped(metrics_h_metric);
The Metrics module is used for the debug mode that dumps timing stats of various actions.
Metric * NewMetric(const std::string &name)
The primary interface to metrics.
Use METRIC_RECORD("foobar") at the top of a function to get timing stats recorded for each call of the function.
Definition at line 83 of file metrics.h.
◆ METRIC_RECORD_IF
| #define METRIC_RECORD_IF |
( |
|
name, |
|
|
|
condition |
|
) |
| |
Value: static Metric* metrics_h_metric = \
ScopedMetric metrics_h_scoped((condition) ? metrics_h_metric : NULL);
A variant of METRIC_RECORD that doesn't record anything if |condition| is false.
Definition at line 90 of file metrics.h.
◆ GetTimeMillis()
◆ g_metrics