Ninja
Public Member Functions | Private Attributes | List of all members
Metrics Struct Reference

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

#include <metrics.h>

Public Member Functions

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

Private Attributes

std::vector< Metric * > metrics_
 

Detailed Description

The singleton that stores metrics and prints the report.

Definition at line 49 of file metrics.h.

Member Function Documentation

◆ NewMetric()

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

Definition at line 73 of file metrics.cc.

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

◆ Report()

void Metrics::Report ( )

Print a summary report to stdout.

Definition at line 82 of file metrics.cc.

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

Member Data Documentation

◆ metrics_

std::vector<Metric*> Metrics::metrics_
private

Definition at line 56 of file metrics.h.


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