17 #ifndef METRICS_HPP_INCLUDED
18 #define METRICS_HPP_INCLUDED
38 clock_t parsing_time, clock_t processing_time);
42 std::ostream&
games(std::ostream& out)
const;
43 std::ostream&
requests(std::ostream& out)
const;
std::ostream & games(std::ostream &out) const
std::ostream & operator<<(std::ostream &out, metrics &met)
std::ostream & requests(std::ostream &out) const
std::vector< sample > samples_
clock_t max_processing_time
simple_wml::string_span name
void game_terminated(const std::string &reason)
GLuint const GLchar * name
std::map< std::string, int > terminations_
int most_consecutive_requests_
void record_sample(const simple_wml::string_span &name, clock_t parsing_time, clock_t processing_time)
friend std::ostream & operator<<(std::ostream &out, metrics &met)
GLsizei const GLcharARB ** string