Classes | |
| struct | duration_event | 
| struct | profile | 
| struct | profile_event | 
| struct | profile_scope | 
| struct | scope_event | 
Enumerations | |
| enum class | scope : char {  global = 'g' , process = 'p' , thread = 't' , none = '\0' }  | 
| enum | event_type : char {  duration_begin = 'B' , duration_end = 'E' , complete = 'X' , instant = 'i' , counter = 'C' , async_start = 'b' , async_instant = 'n' , async_end = 'e' , flow_start = 's' , flow_step = 't' , flow_end = 'f' , sample = 'P' , object_created = 'N' , object_snapshot = 'O' , object_destroyed = 'D' , metadata = 'M' , memory_dump_global = 'V' , memory_dump_local = 'v' , mark = 'R' , clock_sync = 'c' , context_enter = '(' , context_leave = ')' }  | 
Functions | |
| template<typename Duration , typename Clock > | |
| void | to_json (nlohmann::json &j, const profile_event< Duration, Clock > &t) | 
| template<typename Mutex , typename Duration , typename Clock > | |
| void | to_json (nlohmann::json &j, profile< Mutex, Duration, Clock > const &p) noexcept | 
| void | make_args (nlohmann::json &) noexcept | 
| template<typename K , typename V , typename ... Args> | |
| void | make_args (nlohmann::json &j, K &&k, V &&v, Args &&... args) | 
Variables | |
| template<typename T > | |
| static constexpr char const * | duration_suffix | 
nlohmann::json directly | struct ein::profiling::profile_event | 
Definition at line 80 of file profiling.hpp.
| Class Members | ||
|---|---|---|
| typedef Clock | clock Clock | |
| typedef Duration | duration Duration | |
| Class Members | ||
|---|---|---|
| json | args {} | |
| static_c_string | bp {} | |
| static_c_string | cat {} | |
| optional< string > | id {} | |
| static_c_string | name {} | |
| event_type | ph | |
| pid_t | pid = getpid() | |
| scope | s | |
| size_t | tid = std::hash<std::thread::id>{}(std::this_thread::get_id()) | |
| size_t | ts = std::chrono::duration_cast<duration>(clock::now().time_since_epoch()).count() | |
| enum ein::profiling::event_type : char | 
Definition at line 41 of file profiling.hpp.
      
  | 
  strong | 
| Enumerator | |
|---|---|
| global | |
| process | |
| thread | |
| none | |
Definition at line 25 of file profiling.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 319 of file profiling.hpp.
Referenced by make_args().
      
  | 
  inline | 
Definition at line 322 of file profiling.hpp.
References make_args().
| void ein::profiling::to_json | ( | nlohmann::json & | j, | 
| const profile_event< Duration, Clock > & | t ) | 
Definition at line 96 of file profiling.hpp.
References ein::profiling::profile_event< Duration, Clock >::args, ein::profiling::profile_event< Duration, Clock >::bp, ein::profiling::profile_event< Duration, Clock >::cat, ein::profiling::profile_event< Duration, Clock >::id, ein::profiling::profile_event< Duration, Clock >::name, none, ein::profiling::profile_event< Duration, Clock >::ph, ein::profiling::profile_event< Duration, Clock >::pid, ein::profiling::profile_event< Duration, Clock >::s, ein::profiling::profile_event< Duration, Clock >::tid, and ein::profiling::profile_event< Duration, Clock >::ts.
      
  | 
  noexcept[[always_inline]] | 
Definition at line 209 of file profiling.hpp.
References duration_suffix.
      
  | 
  staticconstexpr | 
Definition at line 76 of file profiling.hpp.
Referenced by to_json().