LLVM 22.0.0git
llvm::NamedRegionTimer Struct Reference

This class is basically a combination of TimeRegion and Timer. More...

#include "llvm/Support/Timer.h"

Inheritance diagram for llvm::NamedRegionTimer:
[legend]

Public Member Functions

LLVM_ABI NamedRegionTimer (StringRef Name, StringRef Description, StringRef GroupName, StringRef GroupDescription, bool Enabled=true)
Public Member Functions inherited from llvm::TimeRegion
 TimeRegion (Timer &t)
 TimeRegion (Timer *t)
 ~TimeRegion ()

Static Public Member Functions

static LLVM_ABI TimerGroupgetNamedTimerGroup (StringRef GroupName, StringRef GroupDescription)

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

Definition at line 170 of file Timer.h.

Constructor & Destructor Documentation

◆ NamedRegionTimer()

NamedRegionTimer::NamedRegionTimer ( StringRef Name,
StringRef Description,
StringRef GroupName,
StringRef GroupDescription,
bool Enabled = true )
explicit

Definition at line 250 of file Timer.cpp.

References Enabled, llvm::get(), and namedGroupedTimers().

Member Function Documentation

◆ getNamedTimerGroup()

TimerGroup & NamedRegionTimer::getNamedTimerGroup ( StringRef GroupName,
StringRef GroupDescription )
static

Definition at line 258 of file Timer.cpp.

References namedGroupedTimers().


The documentation for this struct was generated from the following files: