Ninja
Public Member Functions | Private Attributes
Metrics Struct Reference

The singleton that stores metrics and prints the report. More...

#include <metrics.h>

List of all members.

Public Member Functions

MetricNewMetric (const string &name)
void Report ()
 Print a summary report to stdout.

Private Attributes

vector< Metric * > metrics_

Detailed Description

The singleton that stores metrics and prints the report.

Definition at line 51 of file metrics.h.


Member Function Documentation

Metric * Metrics::NewMetric ( const string &  name)

Definition at line 90 of file metrics.cc.

References Metric::count, metrics_, Metric::name, and Metric::sum.

void Metrics::Report ( )

Print a summary report to stdout.

Definition at line 99 of file metrics.cc.

References Metric::count, metrics_, Metric::name, and Metric::sum.


Member Data Documentation

vector<Metric*> Metrics::metrics_ [private]

Definition at line 58 of file metrics.h.

Referenced by NewMetric(), and Report().


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