![]() |
LatticeHashForest
|
Utility class for enabling code-based profiling. More...
#include <profiling.hpp>

Classes | |
| struct | Duration |
Public Types | |
| using | Count = uint64_t |
| using | String = std::string |
| using | TimePoint = std::chrono::steady_clock::time_point |
| template<typename K , typename V > | |
| using | Map = std::map< K, V > |
| using | Mutex = std::mutex |
| using | WriteLock = std::lock_guard< std::mutex > |
| using | ThreadID = std::thread::id |
Public Member Functions | |
| Duration & | get_timer (const String &s) |
| void | timer_start (const String &s) |
| void | timer_end (const String &s) |
| Count & | get_counter (const String &s) |
| void | inc_counter (const String &s) |
| String | dump () const |
Static Public Member Functions | |
| static const ThreadID | currthread () |
Public Attributes | |
| std::mutex | mutex |
| Map< String, Count > | counters |
| Map< ThreadID, Map< String, Duration > > | timers |
Utility class for enabling code-based profiling.
Definition at line 26 of file profiling.hpp.
| using lhf::PerformanceStatistics::Count = uint64_t |
Definition at line 27 of file profiling.hpp.
| using lhf::PerformanceStatistics::Map = std::map<K, V> |
Definition at line 30 of file profiling.hpp.
| using lhf::PerformanceStatistics::Mutex = std::mutex |
Definition at line 32 of file profiling.hpp.
| using lhf::PerformanceStatistics::String = std::string |
Definition at line 28 of file profiling.hpp.
| using lhf::PerformanceStatistics::ThreadID = std::thread::id |
Definition at line 34 of file profiling.hpp.
| using lhf::PerformanceStatistics::TimePoint = std::chrono::steady_clock::time_point |
Definition at line 29 of file profiling.hpp.
| using lhf::PerformanceStatistics::WriteLock = std::lock_guard<std::mutex> |
Definition at line 33 of file profiling.hpp.
|
inlinestatic |
Definition at line 59 of file profiling.hpp.
|
inline |
Definition at line 109 of file profiling.hpp.
Definition at line 94 of file profiling.hpp.
Referenced by inc_counter().
Definition at line 63 of file profiling.hpp.
Referenced by timer_end(), and timer_start().
|
inline |
Definition at line 102 of file profiling.hpp.
|
inline |
Definition at line 83 of file profiling.hpp.
Referenced by lhf::__CalcTime::~__CalcTime().
|
inline |
Definition at line 75 of file profiling.hpp.
Referenced by lhf::__CalcTime::__CalcTime().
Definition at line 54 of file profiling.hpp.
Referenced by dump(), and get_counter().
| std::mutex lhf::PerformanceStatistics::mutex |
Definition at line 36 of file profiling.hpp.
Referenced by inc_counter(), timer_end(), and timer_start().
Definition at line 55 of file profiling.hpp.
Referenced by dump(), and get_timer().