Scanner C++ API
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
scanner::Profiler Class Reference

Classes

struct  TaskRecord
 

Public Member Functions

 Profiler (timepoint_t base_time)
 
 Profiler (const Profiler &other)
 
void add_interval (const std::string &key, timepoint_t start, timepoint_t end, ProfilerLevel level=ProfilerLevel::Info)
 Profiler.
 
void increment (const std::string &key, int64_t value)
 
void reset (timepoint_t base_time)
 
const std::vector< TaskRecord > & get_records () const
 
const std::map< std::string, int64_t > & get_counters () const
 

Protected Member Functions

void spin_lock ()
 
void unlock ()
 

Protected Attributes

timepoint_t base_time_
 
std::atomic_flag lock_
 
std::vector< TaskRecordrecords_
 
std::map< std::string, int64_t > counters_
 

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