#include <metrics.hpp>
Public Member Functions | |
metrics () | |
~metrics () | |
void | service_request () |
void | no_requests () |
void | record_sample (const simple_wml::string_span &name, clock_t parsing_time, clock_t processing_time) |
void | game_terminated (const std::string &reason) |
Private Attributes | |
std::vector< sample > | samples_ |
int | most_consecutive_requests_ |
int | current_requests_ |
int | nrequests_ |
int | nrequests_waited_ |
const time_t | started_at_ |
std::map< std::string, int > | terminations_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, metrics &met) |
Classes | |
struct | sample |
Definition at line 28 of file metrics.hpp.
metrics::metrics | ( | ) |
Definition at line 43 of file metrics.cpp.
metrics::~metrics | ( | ) |
void metrics::service_request | ( | ) |
Definition at line 59 of file metrics.cpp.
References current_requests_, most_consecutive_requests_, nrequests_, and nrequests_waited_.
Referenced by server::run().
void metrics::no_requests | ( | ) |
Definition at line 72 of file metrics.cpp.
References current_requests_.
Referenced by server::run().
void metrics::record_sample | ( | const simple_wml::string_span & | name, | |
clock_t | parsing_time, | |||
clock_t | processing_time | |||
) |
Definition at line 77 of file metrics.cpp.
References simple_wml::string_span::duplicate(), and samples_.
Referenced by server::run().
void metrics::game_terminated | ( | const std::string & | reason | ) |
Definition at line 104 of file metrics.cpp.
References terminations_.
Referenced by server::delete_game().
std::ostream& operator<< | ( | std::ostream & | out, | |
metrics & | met | |||
) | [friend] |
Definition at line 109 of file metrics.cpp.
std::vector<sample> metrics::samples_ [private] |
Definition at line 51 of file metrics.hpp.
Referenced by operator<<(), record_sample(), and ~metrics().
int metrics::most_consecutive_requests_ [private] |
int metrics::current_requests_ [private] |
int metrics::nrequests_ [private] |
int metrics::nrequests_waited_ [private] |
const time_t metrics::started_at_ [private] |
std::map<std::string,int> metrics::terminations_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |