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

#include <rtkGlobalResourceProbe.h>

Detailed Description

Definition at line 36 of file rtkGlobalResourceProbe.h.

+ Inheritance diagram for rtk::GlobalResourceProbe:
+ Collaboration diagram for rtk::GlobalResourceProbe:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
 
using Pointer = itk::SmartPointer<Self>
 
using Self = GlobalResourceProbe
 
using Superclass = itk::Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

virtual void Clear ()
 
virtual const char * GetNameOfClass () const
 
virtual bool GetVerbose ()
 
virtual void Remove (const rtk::WatcherForResourceProbe *w)
 
virtual void Report (std::ostream &os=std::cout) const
 
virtual void SetVerbose (bool _arg)
 
virtual void Start (const char *id)
 
virtual void Stop (const char *id)
 
virtual void Watch (itk::ProcessObject *o)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer GetInstance ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 GlobalResourceProbe ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~GlobalResourceProbe () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

ResourceProbesCollector m_ResourceProbesCollector
 
bool m_Verbose
 
std::vector< rtk::WatcherForResourceProbe * > m_Watchers
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Private Attributes

std::mutex m_Mutex
 

Static Private Attributes

static Pointer m_Instance
 

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

Standard class type alias.

Definition at line 42 of file rtkGlobalResourceProbe.h.

◆ Superclass

Constructor & Destructor Documentation

◆ GlobalResourceProbe()

rtk::GlobalResourceProbe::GlobalResourceProbe ( )
protected

Referenced by GetNameOfClass().

◆ ~GlobalResourceProbe()

rtk::GlobalResourceProbe::~GlobalResourceProbe ( )
overrideprotected

Member Function Documentation

◆ Clear()

virtual void rtk::GlobalResourceProbe::Clear ( )
virtual

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

◆ GetInstance()

static Pointer rtk::GlobalResourceProbe::GetInstance ( )
static

Return the singleton instance with no reference counting.

Referenced by rtk::args_info_manager< TArgsInfo, TCleanupFunction >::args_info_manager().

◆ GetNameOfClass()

virtual const char * rtk::GlobalResourceProbe::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Object.

References GlobalResourceProbe().

◆ GetVerbose()

virtual bool rtk::GlobalResourceProbe::GetVerbose ( )
virtual

◆ New()

static Pointer rtk::GlobalResourceProbe::New ( )
static

This is a singleton pattern New. There will only be ONE reference to a GlobalResourceProbe object per process. Clients that call this must call Delete on the object so that the reference counting will work. The single instance will be unreferenced when the program exits.

◆ PrintSelf()

void rtk::GlobalResourceProbe::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::LightObject.

◆ Remove()

virtual void rtk::GlobalResourceProbe::Remove ( const rtk::WatcherForResourceProbe * w)
virtual

Remove a watcher

◆ Report()

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

Report the summary of results from the probes

◆ SetVerbose()

virtual void rtk::GlobalResourceProbe::SetVerbose ( bool _arg)
virtual

Set / Get macro for verbosity

◆ Start()

virtual void rtk::GlobalResourceProbe::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::GlobalResourceProbe::Stop ( const char * id)
virtual

Stop a time probe identified with a name

◆ Watch()

virtual void rtk::GlobalResourceProbe::Watch ( itk::ProcessObject * o)
virtual

Create a new watcher and store it

Member Data Documentation

◆ m_Instance

Pointer rtk::GlobalResourceProbe::m_Instance
staticprivate

Definition at line 103 of file rtkGlobalResourceProbe.h.

◆ m_Mutex

std::mutex rtk::GlobalResourceProbe::m_Mutex
private

Definition at line 104 of file rtkGlobalResourceProbe.h.

◆ m_ResourceProbesCollector

ResourceProbesCollector rtk::GlobalResourceProbe::m_ResourceProbesCollector
protected

Definition at line 99 of file rtkGlobalResourceProbe.h.

◆ m_Verbose

bool rtk::GlobalResourceProbe::m_Verbose
protected

Definition at line 97 of file rtkGlobalResourceProbe.h.

◆ m_Watchers

std::vector<rtk::WatcherForResourceProbe *> rtk::GlobalResourceProbe::m_Watchers
protected

Definition at line 100 of file rtkGlobalResourceProbe.h.


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