ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::ResourceProbesCollector Class Reference

#include <rtkResourceProbesCollector.h>

Detailed Description

Aggregates a set of time, memory and cuda memory probes.

Definition at line 38 of file rtkResourceProbesCollector.h.

+ Collaboration diagram for rtk::ResourceProbesCollector:

Public Types

using IdType = std::string
 
using MemoryMapType = std::map<IdType, itk::MemoryProbe>
 
using TimeMapType = std::map<IdType, itk::TimeProbe>
 

Public Member Functions

virtual void Clear ()
 
virtual void Report (std::ostream &os=std::cout) const
 
virtual void Start (const char *id)
 
virtual void Stop (const char *id)
 
virtual ~ResourceProbesCollector ()=default
 

Protected Attributes

MemoryMapType m_MemoryProbes
 
TimeMapType m_TimeProbes
 

Member Typedef Documentation

◆ IdType

Definition at line 41 of file rtkResourceProbesCollector.h.

◆ MemoryMapType

◆ TimeMapType

Constructor & Destructor Documentation

◆ ~ResourceProbesCollector()

virtual rtk::ResourceProbesCollector::~ResourceProbesCollector ( )
virtualdefault

destructor

Member Function Documentation

◆ Clear()

virtual void rtk::ResourceProbesCollector::Clear ( )
virtual

Destroy the set of probes. New probes can be created after invoking this method.

◆ Report()

virtual void rtk::ResourceProbesCollector::Report ( std::ostream & os = std::cout) const
virtual

Report the summary of results from all probes

◆ Start()

virtual void rtk::ResourceProbesCollector::Start ( const char * id)
virtual

Start a probe with a particular name. If the time probe does not exist, it will be created

◆ Stop()

virtual void rtk::ResourceProbesCollector::Stop ( const char * id)
virtual

Stop a time probe identified with a name

Member Data Documentation

◆ m_MemoryProbes

MemoryMapType rtk::ResourceProbesCollector::m_MemoryProbes
protected

Definition at line 71 of file rtkResourceProbesCollector.h.

◆ m_TimeProbes

TimeMapType rtk::ResourceProbesCollector::m_TimeProbes
protected

Definition at line 70 of file rtkResourceProbesCollector.h.


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