Symphony Of Empires
Eng3D::BenchmarkTask Class Reference

#include <profiler.hpp>

Public Member Functions

 BenchmarkTask (const std::string &task, uint32_t argb)
 
BenchmarkTaskoperator= (const BenchmarkTask &lhs)=delete
 
void start ()
 
void stop ()
 
float get_average_time_ms ()
 
float get_largest_time_ms ()
 

Public Attributes

const std::string name
 
const uint32_t color
 

Detailed Description

Definition at line 38 of file profiler.hpp.

Constructor & Destructor Documentation

◆ BenchmarkTask()

Eng3D::BenchmarkTask::BenchmarkTask ( const std::string &  task,
uint32_t  argb 
)
inline

Definition at line 41 of file profiler.hpp.

Member Function Documentation

◆ get_average_time_ms()

float Eng3D::BenchmarkTask::get_average_time_ms ( )

Definition at line 52 of file profiler.cpp.

Here is the caller graph for this function:

◆ get_largest_time_ms()

float Eng3D::BenchmarkTask::get_largest_time_ms ( )

Definition at line 60 of file profiler.cpp.

◆ operator=()

BenchmarkTask& Eng3D::BenchmarkTask::operator= ( const BenchmarkTask lhs)
delete

◆ start()

void Eng3D::BenchmarkTask::start ( )

Definition at line 35 of file profiler.cpp.

Here is the caller graph for this function:

◆ stop()

void Eng3D::BenchmarkTask::stop ( )

Definition at line 40 of file profiler.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ color

const uint32_t Eng3D::BenchmarkTask::color

Definition at line 54 of file profiler.hpp.

◆ name

const std::string Eng3D::BenchmarkTask::name

Definition at line 53 of file profiler.hpp.


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