The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
metrics::sample Struct Reference

#include <metrics.hpp>

Public Member Functions

 operator const simple_wml::string_span & ()
 

Public Attributes

simple_wml::string_span name {}
 
int nsamples = 0
 
std::chrono::steady_clock::duration parsing_time {0}
 
std::chrono::steady_clock::duration processing_time {0}
 
std::chrono::steady_clock::duration max_parsing_time {0}
 
std::chrono::steady_clock::duration max_processing_time {0}
 

Detailed Description

Definition at line 45 of file metrics.hpp.

Member Function Documentation

◆ operator const simple_wml::string_span &()

metrics::sample::operator const simple_wml::string_span & ( )
inline

Definition at line 54 of file metrics.hpp.

References name.

Member Data Documentation

◆ max_parsing_time

std::chrono::steady_clock::duration metrics::sample::max_parsing_time {0}

Definition at line 51 of file metrics.hpp.

◆ max_processing_time

std::chrono::steady_clock::duration metrics::sample::max_processing_time {0}

Definition at line 52 of file metrics.hpp.

◆ name

simple_wml::string_span metrics::sample::name {}

Definition at line 47 of file metrics.hpp.

Referenced by operator const simple_wml::string_span &(), and metrics::record_sample().

◆ nsamples

int metrics::sample::nsamples = 0

Definition at line 48 of file metrics.hpp.

◆ parsing_time

std::chrono::steady_clock::duration metrics::sample::parsing_time {0}

Definition at line 49 of file metrics.hpp.

◆ processing_time

std::chrono::steady_clock::duration metrics::sample::processing_time {0}

Definition at line 50 of file metrics.hpp.

Referenced by compare_samples_by_time::operator()().


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