open_iA 2025.6
Loading...
Searching...
No Matches
iAPerformanceHelper Class Reference

Class for debug output about start and end of an operation. More...

#include <iAPerformanceHelper.h>

Public Member Functions

 iAPerformanceHelper ()
 
 ~iAPerformanceHelper ()
 
iAPerformanceTimer::DurationType elapsed () const
 
void start (std::string const &caption="", bool printMemUsage=true)
 
iAPerformanceTimer::DurationType stop ()
 
iAPerformanceTimer::DurationType time (std::string const &caption="") const
 

Static Public Member Functions

static QString printMemoryUsage ()
 print memory usage information
 
static void printTime (iAPerformanceTimer::DurationType, std::string const &caption="", bool printMemUsage=false)
 helper method for printing the time (and optionally memory usage)
 

Detailed Description

Class for debug output about start and end of an operation.

call start() to print start message call stop() to print stop message + time call time() in between to show lap times all optionally including memory usage

Constructor & Destructor Documentation

◆ iAPerformanceHelper()

iAPerformanceHelper::iAPerformanceHelper ( )

◆ ~iAPerformanceHelper()

iAPerformanceHelper::~iAPerformanceHelper ( )

Member Function Documentation

◆ elapsed()

iAPerformanceTimer::DurationType iAPerformanceHelper::elapsed ( ) const

◆ printMemoryUsage()

QString iAPerformanceHelper::printMemoryUsage ( )
static

print memory usage information

◆ printTime()

void iAPerformanceHelper::printTime ( iAPerformanceTimer::DurationType duration,
std::string const & caption = "",
bool printMemUsage = false )
static

helper method for printing the time (and optionally memory usage)

◆ start()

void iAPerformanceHelper::start ( std::string const & caption = "",
bool printMemUsage = true )

◆ stop()

iAPerformanceTimer::DurationType iAPerformanceHelper::stop ( )

◆ time()

iAPerformanceTimer::DurationType iAPerformanceHelper::time ( std::string const & caption = "") const

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