LLVM 22.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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 67 of file Telemetry.h.

Constructor & Destructor Documentation

◆ Config() [1/2]

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

Definition at line 73 of file Telemetry.h.

◆ ~Config()

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

◆ Config() [2/2]

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

Definition at line 79 of file Telemetry.h.

Member Function Documentation

◆ makeSessionId()

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

Definition at line 81 of file Telemetry.h.

Member Data Documentation

◆ BuildTimeEnableTelemetry

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

Definition at line 68 of file Telemetry.h.

Referenced by llvm::telemetry::Manager::dispatch().

◆ EnableTelemetry

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

Definition at line 71 of file Telemetry.h.


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