sun::support::ScopedStage

sun::support::ScopedStage

class · Source (opens in a new tab)

class sun::support::ScopedStage

Times 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 &)=delete

Starts 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 &)=delete

Disallows 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.