luna engine
software engine
Loading...
Searching...
No Matches
luna::instrumentor Class Reference

#include <instrumentor.h>

Collaboration diagram for luna::instrumentor:

Public Member Functions

 instrumentor (const instrumentor &)=delete
 
 instrumentor (instrumentor &&)=delete
 
void BeginSession (const std::string &name, const std::string &filepath="results.json")
 
void EndSession ()
 
void WriteProfile (const profileResult &result)
 

Static Public Member Functions

static instrumentorGet ()
 

Private Member Functions

 instrumentor ()
 
 ~instrumentor ()
 
void WriteHeader ()
 
void WriteFooter ()
 
void InternalEndSession ()
 

Private Attributes

std::mutex m_Mutex
 
instrumentationSessionm_CurrentSession
 
std::ofstream m_OutputStream
 

Constructor & Destructor Documentation

◆ instrumentor() [1/3]

luna::instrumentor::instrumentor ( const instrumentor )
delete

◆ instrumentor() [2/3]

luna::instrumentor::instrumentor ( instrumentor &&  )
delete

◆ instrumentor() [3/3]

luna::instrumentor::instrumentor ( )
inlineprivate

◆ ~instrumentor()

luna::instrumentor::~instrumentor ( )
inlineprivate

Member Function Documentation

◆ BeginSession()

void luna::instrumentor::BeginSession ( const std::string &  name,
const std::string &  filepath = "results.json" 
)
inline

◆ EndSession()

void luna::instrumentor::EndSession ( )
inline

◆ Get()

static instrumentor & luna::instrumentor::Get ( )
inlinestatic

◆ InternalEndSession()

void luna::instrumentor::InternalEndSession ( )
inlineprivate

◆ WriteFooter()

void luna::instrumentor::WriteFooter ( )
inlineprivate

◆ WriteHeader()

void luna::instrumentor::WriteHeader ( )
inlineprivate

◆ WriteProfile()

void luna::instrumentor::WriteProfile ( const profileResult result)
inline

Member Data Documentation

◆ m_CurrentSession

instrumentationSession* luna::instrumentor::m_CurrentSession
private

◆ m_Mutex

std::mutex luna::instrumentor::m_Mutex
private

◆ m_OutputStream

std::ofstream luna::instrumentor::m_OutputStream
private

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