◆ Profiling()
eii::utils::Profiling::Profiling |
( |
| ) |
|
Constructor which reads the profiling mode value from env variable, converts it to lower case & stores in member variable to be used the clients who create Profiling objects.
◆ add_profiling_ts()
void eii::utils::Profiling::add_profiling_ts |
( |
msg_envelope_t * |
meta_data, |
|
|
const char * |
key |
|
) |
| |
Add a profiling timestamp to the given meta data message envelope.
This method reads the current time as no. of miliseconds since epoch, then * converts it to int64_t format and adds the value to the given msg_envelope_t
.
- Parameters
-
meta | - Message envelope to add the timestamp to |
key | - Key for the timestamp to be added |
◆ get_curr_time_as_int_epoch()
int64_t eii::utils::Profiling::get_curr_time_as_int_epoch |
( |
| ) |
|
Utility function to be used to get the current time since epoch in miliseconds as an int64_t.
- Returns
- int64_t
◆ is_profiling_enabled()
bool eii::utils::Profiling::is_profiling_enabled |
( |
| ) |
|
Check if profiling is enabled or not.
- Returns
- bool
The documentation for this class was generated from the following file: