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: