perfc 0.11.0
Loading...
Searching...
No Matches
perfc::CounterTypes< CounterType > Struct Template Reference

Helper used when declaring counter types in perfc::Register. More...

#include <perfc/register.hpp>

Detailed Description

template<class... CounterType>
struct perfc::CounterTypes< CounterType >

Helper used when declaring counter types in perfc::Register.

Example:

// Specify the counter types that should be supported by our Register
// Metadata using simple string for this example.
using Metadata = std::string;
// Specify the counters as first template parameter.
Register of counter variants, used for example to facilitate discovery/monitoring.
Definition register.hpp:257
Counter< double, void > CounterDouble
Definition counter.hpp:498
Counter< std::uint64_t, void > CounterU64
Definition counter.hpp:499
Helper used when declaring counter types in perfc::Register.
Definition register.hpp:46

Definition at line 46 of file register.hpp.

Public Types

using CounterVariant = std::variant<std::add_pointer_t<CounterType>...>
 

Member Typedef Documentation

◆ CounterVariant

template<class... CounterType>
using perfc::CounterTypes< CounterType >::CounterVariant = std::variant<std::add_pointer_t<CounterType>...>

Definition at line 47 of file register.hpp.


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