Ginan
Loading...
Searching...
No Matches
trace.hpp File Reference

Data Structures

struct  ConsoleLog
 
struct  PooledTraceFile
 
struct  Block
 
struct  ArbitraryKVP
 

Functions

template<typename... Arguments>
void tracepdeex_ (Trace &stream, string const &fmt, Arguments &&... args)
 
template<typename... Args>
void traceTrivialDebug_ (string const &fmt, Args &&... args)
 
template<typename... Args>
void traceTrivialInfo_ (string const &fmt, Args &&... args)
 
template<typename... Args>
void traceTrivialTrace_ (string const &fmt, Args &&... args)
 
std::unordered_map< string, std::shared_ptr< std::ofstream > > & traceFileCache ()
 
std::mutex & retainedTraceFilesMutex ()
 
std::unordered_set< string > & retainedTraceFileNames ()
 
size_t & retainedTraceFilesGeneration ()
 
void pruneTraceFileCache (const std::unordered_set< string > &activeFilenames)
 
void pruneTraceFileCacheIfNeeded ()
 
void retainTraceFiles (const std::unordered_set< string > &activeFilenames)
 
PooledTraceFile getTraceFile (const string &traceFilename, const string &id)
 
template<typename T >
PooledTraceFile getTraceFile (T &thing, bool json=false)
 
void printHex (Trace &trace, vector< unsigned char > &chunk)
 
void traceFormatedFloat (Trace &trace, double val, string formatStr)
 
void traceJson_ (Trace &trace, GTime &time, vector< ArbitraryKVP > id, vector< ArbitraryKVP > val)
 
bool createNewTraceFile (const string id, const string &source, boost::posix_time::ptime logptime, string new_path_trace, string &old_path_trace, bool outputHeader=false, bool outputConfig=false)
 

Typedefs

using Trace = std::ostream
 

Typedef Documentation

◆ Trace

using Trace = std::ostream

Function Documentation

◆ createNewTraceFile()

bool createNewTraceFile ( const string id,
const string & source,
boost::posix_time::ptime logptime,
string new_path_trace,
string & old_path_trace,
bool outputHeader = false,
bool outputConfig = false )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTraceFile() [1/2]

PooledTraceFile getTraceFile ( const string & traceFilename,
const string & id )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTraceFile() [2/2]

template<typename T >
PooledTraceFile getTraceFile ( T & thing,
bool json = false )
Here is the call graph for this function:

◆ printHex()

void printHex ( Trace & trace,
vector< unsigned char > & chunk )

◆ pruneTraceFileCache()

void pruneTraceFileCache ( const std::unordered_set< string > & activeFilenames)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pruneTraceFileCacheIfNeeded()

void pruneTraceFileCacheIfNeeded ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retainedTraceFileNames()

std::unordered_set< string > & retainedTraceFileNames ( )
inline
Here is the caller graph for this function:

◆ retainedTraceFilesGeneration()

size_t & retainedTraceFilesGeneration ( )
inline
Here is the caller graph for this function:

◆ retainedTraceFilesMutex()

std::mutex & retainedTraceFilesMutex ( )
inline
Here is the caller graph for this function:

◆ retainTraceFiles()

void retainTraceFiles ( const std::unordered_set< string > & activeFilenames)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ traceFileCache()

std::unordered_map< string, std::shared_ptr< std::ofstream > > & traceFileCache ( )
inline
Here is the caller graph for this function:

◆ traceFormatedFloat()

void traceFormatedFloat ( Trace & trace,
double val,
string formatStr )
Here is the caller graph for this function:

◆ traceJson_()

void traceJson_ ( Trace & trace,
GTime & time,
vector< ArbitraryKVP > id,
vector< ArbitraryKVP > val )
Here is the call graph for this function:

◆ tracepdeex_()

template<typename... Arguments>
void tracepdeex_ ( Trace & stream,
string const & fmt,
Arguments &&... args )

◆ traceTrivialDebug_()

template<typename... Args>
void traceTrivialDebug_ ( string const & fmt,
Args &&... args )

◆ traceTrivialInfo_()

template<typename... Args>
void traceTrivialInfo_ ( string const & fmt,
Args &&... args )

◆ traceTrivialTrace_()

template<typename... Args>
void traceTrivialTrace_ ( string const & fmt,
Args &&... args )