open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | Static Public Member Functions | List of all members
iAPerformanceHelper Class Reference

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. 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 More...
 
static void printTime (iAPerformanceTimer::DurationType, std::string const &caption="", bool printMemUsage=false)
 helper method for printing the time (and optionally memory usage) More...
 

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: