Provide profiling information. More...
#include <Profile.hh>
Public Member Functions | |
Profile (const char *Header) | |
Constructor. | |
std::string | operator() (const char *Filename, size_t Line, const char *Message="") |
Output profiling information. | |
Profile (const char *Header) | |
Constructor. | |
std::string | operator() (const char *Filename, size_t Line, const char *Message="") |
Output profiling information. | |
Private Attributes | |
const char * | m_header |
GPSTime | m_start |
GPSTime | m_previous |
GPSTime | m_now |
Provide profiling information.
This class is intended to be used for debugging purposes. It records the the time the instance was instantiated and then reports the differnce between the current time and the instantiated time so a developer can evaluate the speed of a routine.
|
inline |
Constructor.
Header | This is a message which is to appear at the beginning of each line of output. It most commonly will be the fully qualified name of the function or method that was invoked. |
LDASTools::AL::Profile::Profile | ( | const char * | Header | ) |
Constructor.
Header | This is a message which is to appear at the beginning of each line of output. It most commonly will be the fully qualified name of the function or method that was invoked. |
|
inline |
Output profiling information.
Filename | The name of the file being profiled. |
Line | The line number inside the file being profiled. |
Message | Text to appear immediately following the Header given at instantiation. |
std::string LDASTools::AL::Profile::operator() | ( | const char * | Filename, |
size_t | Line, | ||
const char * | Message = "" ) |
Output profiling information.
Filename | The name of the file being profiled. |
Line | The line number inside the file being profiled. |
Message | Text to appear immediately following the Header given at instantiation. |
|
private |
|
private |
|
private |
|
private |