|
Ninja
|


Go to the source code of this file.
Classes | |
| 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... | |
Macros | |
| #define | METRIC_RECORD(name) |
| The primary interface to metrics. | |
| #define | METRIC_RECORD_IF(name, condition) |
| A variant of METRIC_RECORD that doesn't record anything if |condition| is false. | |
Functions | |
| int64_t | GetTimeMillis () |
| Get the current time as relative to some epoch. | |
Variables | |
| Metrics * | g_metrics |
| #define METRIC_RECORD | ( | 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.
Referenced by Plan::ComputeCriticalPath(), Builder::FinishCommand(), BuildLog::Load(), DepsLog::Load(), ImplicitDepLoader::LoadDepFile(), CLParser::Parse(), BuildLog::Recompact(), DepsLog::Recompact(), BuildLog::Restat(), Builder::StartEdge(), and RealDiskInterface::Stat().
| #define METRIC_RECORD_IF | ( | name, | |
| condition ) |
A variant of METRIC_RECORD that doesn't record anything if |condition| is false.
Definition at line 90 of file metrics.h.
Referenced by Parser::Load().
| int64_t GetTimeMillis | ( | ) |
Get the current time as relative to some epoch.
Epoch varies between platforms; only useful for measuring elapsed time.
Definition at line 111 of file metrics.cc.
Referenced by Builder::FinishCommand(), main(), main(), and Builder::StartEdge().
|
extern |
Definition at line 28 of file metrics.cc.