AYON Cpp Api  0.1.0
Loading...
Searching...
No Matches
Instrumentor Class Reference

#include <Instrumentor.h>

Collaboration diagram for Instrumentor:

Public Member Functions

 Instrumentor ()
 
void BeginSession (const std::string &name, const std::string &filepath="results.json")
 
void endSession ()
 
void WriteProfileAsync (const ProfileResult &result)
 
void WriteProfile (const ProfileResult &result)
 
void WriteHeader ()
 
void WriteFooter ()
 

Static Public Member Functions

static InstrumentorGet ()
 

Private Attributes

InstrumentationSessionm_currentSession
 
std::ofstream m_outputStream
 
int m_profileCount
 
std::mutex m_mutex
 

Constructor & Destructor Documentation

◆ Instrumentor()

Instrumentor::Instrumentor ( )
inline

Member Function Documentation

◆ BeginSession()

void Instrumentor::BeginSession ( const std::string &  name,
const std::string &  filepath = "results.json" 
)
inline
Here is the call graph for this function:

◆ endSession()

void Instrumentor::endSession ( )
inline
Here is the call graph for this function:

◆ Get()

static Instrumentor & Instrumentor::Get ( )
inlinestatic
Here is the caller graph for this function:

◆ WriteFooter()

void Instrumentor::WriteFooter ( )
inline
Here is the caller graph for this function:

◆ WriteHeader()

void Instrumentor::WriteHeader ( )
inline
Here is the caller graph for this function:

◆ WriteProfile()

void Instrumentor::WriteProfile ( const ProfileResult result)
inline
Here is the caller graph for this function:

◆ WriteProfileAsync()

void Instrumentor::WriteProfileAsync ( const ProfileResult result)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_currentSession

InstrumentationSession* Instrumentor::m_currentSession
private

◆ m_mutex

std::mutex Instrumentor::m_mutex
private

◆ m_outputStream

std::ofstream Instrumentor::m_outputStream
private

◆ m_profileCount

int Instrumentor::m_profileCount
private

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