llvm::NamedRegionTimer

Combines Timer and TimeRegion to time a named region in one statement.

Synopsis

Declared in <llvm/Support/Timer.h>

struct NamedRegionTimer
    : TimeRegion

Description

This class is basically a combination of TimeRegion and Timer. It allows you to declare a new timer, AND specify the region to time, all in one statement. All timers with the same name are merged. This is primarily used for debugging and for hunting performance problems.

Base Classes

NameDescription
TimeRegionRAII helper that starts a timer on construction and stops it on destruction.

Member Functions

NameDescription
NamedRegionTimer [constructor]Create a named region timer in the named group.

Static Member Functions

NameDescription
getNamedTimerGroup Create or get a TimerGroup stored in the same global map owned by NamedRegionTimer.