sun::support::ScopedStage
class · Source (opens in a new tab)
class sun::support::ScopedStageTimes the enclosing scope and records it under name.
Public Functions
ScopedStage
ScopedStage(std::string name)
public · function · Source (opens in a new tab)
sun::support::ScopedStage::ScopedStage(std::string name)Starts timing a named compiler stage until this object leaves scope.
ScopedStage(const ScopedStage &)=delete
public · function · Source (opens in a new tab)
sun::support::ScopedStage::ScopedStage(const ScopedStage &)=deleteStarts timing a named compiler stage until this object leaves scope.
Related: ScopedStage
operator=
public · function · Source (opens in a new tab)
ScopedStage & sun::support::ScopedStage::operator=(const ScopedStage &)=deleteDisallows assignment so ownership and object identity cannot be duplicated.
Related: ScopedStage
~ScopedStage
public · function · Source (opens in a new tab)
sun::support::ScopedStage::~ScopedStage()Records the elapsed time for the stage when its scope ends.
Private Fields
name_
private · variable · Source (opens in a new tab)
std::string sun::support::ScopedStage::name_No documentation comment.
start_
private · variable · Source (opens in a new tab)
std::chrono::steady_clock::time_point sun::support::ScopedStage::start_No documentation comment.