Provide profiling information.
More...
#include <Profile.hh>
|
| Profile (const char *Header) |
| Constructor. More...
|
|
std::string | operator() (const char *Filename, size_t Line, const char *Message="") |
| Output profiling information. More...
|
|
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.
◆ Profile()
LDASTools::AL::Profile::Profile |
( |
const char * |
Header | ) |
|
|
inline |
Constructor.
- Parameters
-
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. |
◆ operator()()
std::string LDASTools::AL::Profile::operator() |
( |
const char * |
Filename, |
|
|
size_t |
Line, |
|
|
const char * |
Message = "" |
|
) |
| |
|
inline |
Output profiling information.
- Parameters
-
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. |
- Returns
- The profiling data formatted as a string.
The documentation for this class was generated from the following file: