LLVM 22.0.0git
llvm::telemetry::Config Struct Reference

Configuration for the Manager class. More...

#include "llvm/Telemetry/Telemetry.h"

Public Member Functions

 Config ()
virtual ~Config ()=default
 Config (bool E)
virtual std::optional< std::string > makeSessionId ()

Public Attributes

const bool EnableTelemetry

Static Public Attributes

static constexpr bool BuildTimeEnableTelemetry = LLVM_ENABLE_TELEMETRY

Detailed Description

Configuration for the Manager class.

This stores configurations from both users and vendors and is passed to the Manager upon construction. (Any changes to the config after the Manager's construction will not have any effect on it).

This struct can be extended as needed to add additional configuration points specific to a vendor's implementation.

Definition at line 66 of file Telemetry.h.

Constructor & Destructor Documentation

◆ Config() [1/2]

llvm::telemetry::Config::Config ( )
inlineexplicit

Definition at line 72 of file Telemetry.h.

References BuildTimeEnableTelemetry, and EnableTelemetry.

◆ ~Config()

virtual llvm::telemetry::Config::~Config ( )
virtualdefault

◆ Config() [2/2]

llvm::telemetry::Config::Config ( bool E)
inlineexplicit

Definition at line 78 of file Telemetry.h.

References BuildTimeEnableTelemetry, E(), and EnableTelemetry.

Member Function Documentation

◆ makeSessionId()

virtual std::optional< std::string > llvm::telemetry::Config::makeSessionId ( )
inlinevirtual

Definition at line 80 of file Telemetry.h.

Member Data Documentation

◆ BuildTimeEnableTelemetry

bool llvm::telemetry::Config::BuildTimeEnableTelemetry = LLVM_ENABLE_TELEMETRY
staticconstexpr

Definition at line 67 of file Telemetry.h.

Referenced by Config(), Config(), and llvm::telemetry::Manager::dispatch().

◆ EnableTelemetry

const bool llvm::telemetry::Config::EnableTelemetry

Definition at line 70 of file Telemetry.h.

Referenced by Config(), and Config().


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