#include <cstdlib>
#include <cstring>
#include <iostream>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
#include "MHO_SelfName.hh"
#include "MHO_Timer.hh"
Go to the source code of this file.
◆ hops::MHO_ProfileEvent
struct hops::MHO_ProfileEvent |
◆ HOPS_USE_PROFILER
#define HOPS_USE_PROFILER |
◆ PROFILE_INFO_LEN
#define PROFILE_INFO_LEN 128 |
◆ profiler_start
#define profiler_start |
( |
| ) |
|
Value: do \
{ \
MHO_Profiler::GetInstance().Lock(); \
MHO_Profiler::GetInstance().AddEntry(pStart, std::hash< std::thread::id >{}(std::this_thread::get_id()), \
std::string(__PRETTY_FUNCTION__)); \
MHO_Profiler::GetInstance().Unlock(); \
} \
while(0)
constexpr const char * file_basename(const char *str)
Returns the base name (file name without path) from a given string.
Definition: MHO_SelfName.hh:54
◆ profiler_stop
#define profiler_stop |
( |
| ) |
|
Value: do \
{ \
MHO_Profiler::GetInstance().Lock(); \
MHO_Profiler::GetInstance().AddEntry(pStop, std::hash< std::thread::id >{}(std::this_thread::get_id()), \
std::string(__PRETTY_FUNCTION__)); \
MHO_Profiler::GetInstance().Unlock(); \
} \
while(0)