Class Profiler::ScopedStart

Nested Relationships

This class is a nested type of Class Profiler.

Class Documentation

class ScopedStart

This instance will call Profiler::start() when constructed and Profiler::stop() when it goes out of scope. If the profiler was already started, this block’s constructor and destructor take no action.

Public Functions

inline ScopedStart(Profiler &prof = Profiler::Instance())

Take as argument the profiler instance to operate on (prof)

inline ~ScopedStart()