CARLA
Public Member Functions | Private Attributes | List of all members
carla::traffic_manager::SnippetProfiler Class Reference

#include <SnippetProfiler.h>

+ Collaboration diagram for carla::traffic_manager::SnippetProfiler:

Public Member Functions

void MeasureExecutionTime (std::string snippet_name, bool begin_or_end)
 
 SnippetProfiler ()
 

Private Attributes

std::unordered_map< std::string, unsigned long > number_of_calls
 
std::unordered_map< std::string, TimePointprint_clocks
 
std::unordered_map< std::string, TimePointsnippet_clocks
 
std::unordered_map< std::string, chr::duration< float > > snippet_durations
 

Detailed Description

Definition at line 22 of file SnippetProfiler.h.

Constructor & Destructor Documentation

◆ SnippetProfiler()

carla::traffic_manager::SnippetProfiler::SnippetProfiler ( )
inline

Definition at line 31 of file SnippetProfiler.h.

Member Function Documentation

◆ MeasureExecutionTime()

void carla::traffic_manager::SnippetProfiler::MeasureExecutionTime ( std::string  snippet_name,
bool  begin_or_end 
)
inline

Definition at line 33 of file SnippetProfiler.h.

Member Data Documentation

◆ number_of_calls

std::unordered_map<std::string, unsigned long> carla::traffic_manager::SnippetProfiler::number_of_calls
private

Definition at line 28 of file SnippetProfiler.h.

◆ print_clocks

std::unordered_map<std::string, TimePoint> carla::traffic_manager::SnippetProfiler::print_clocks
private

Definition at line 25 of file SnippetProfiler.h.

◆ snippet_clocks

std::unordered_map<std::string, TimePoint> carla::traffic_manager::SnippetProfiler::snippet_clocks
private

Definition at line 26 of file SnippetProfiler.h.

◆ snippet_durations

std::unordered_map<std::string, chr::duration<float> > carla::traffic_manager::SnippetProfiler::snippet_durations
private

Definition at line 27 of file SnippetProfiler.h.


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