struct NamedRegionTimer

Declaration

struct NamedRegionTimer : public TimeRegion { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Support/Timer.h:160

Inherits from: TimeRegion

Method Overview

  • public NamedRegionTimer(llvm::StringRef Name, llvm::StringRef Description, llvm::StringRef GroupName, llvm::StringRef GroupDescription, bool Enabled = true)

Inherited from TimeRegion:

    Methods

    ΒΆNamedRegionTimer(llvm::StringRef Name,
                     llvm::StringRef Description,
                     llvm::StringRef GroupName,
                     llvm::StringRef GroupDescription,
                     bool Enabled = true)

    Declared at: llvm/include/llvm/Support/Timer.h:161

    Parameters

    llvm::StringRef Name
    llvm::StringRef Description
    llvm::StringRef GroupName
    llvm::StringRef GroupDescription
    bool Enabled = true