open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Classes | Functions
iAPerformanceHelper.cpp File Reference
#include "iAPerformanceHelper.h"
#include "iAConsole.h"
#include <QString>
#include <iomanip>
Include dependency graph for iAPerformanceHelper.cpp:

Classes

class  iAPerfHelperImpl
 
class  iAPerfTimerImpl
 

Functions

QString formatDuration (double duration)
 format the given time in a human-readable format More...
 
size_t getCurrentRSS ()
 Returns the current resident set size (physical memory use) measured in bytes, or zero if the value cannot be determined on this OS. More...
 

Function Documentation

◆ formatDuration()

QString formatDuration ( double  duration)

format the given time in a human-readable format

Parameters
durationthe time to format (in seconds)

◆ getCurrentRSS()

size_t getCurrentRSS ( )

Returns the current resident set size (physical memory use) measured in bytes, or zero if the value cannot be determined on this OS.

Helper method for getting the current memory usage.