Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
Feel::FunctionSpaceBuildInstrumentation Class Reference

Runtime-disabled counters used by focused tests and benchmarks. More...

+ Collaboration diagram for Feel::FunctionSpaceBuildInstrumentation:

Static Public Member Functions

static FunctionSpaceBuildCounts counts () noexcept
 Read both construction counters. More...
 
static bool enabled () noexcept
 Report whether construction event recording is active. More...
 
static void recordDofTableBuild () noexcept
 Record one DOF-table build when enabled.
 
static void recordFunctionSpaceConstruction () noexcept
 Record one FunctionSpaceBase construction when enabled.
 
static void reset () noexcept
 Reset both counters to zero. More...
 
static void setEnabled (bool enabled) noexcept
 Enable or disable construction event recording. More...
 

Detailed Description

Runtime-disabled counters used by focused tests and benchmarks.

Reset and enable/disable operations are expected to be performed while no function-space construction is running. Recording is thread-safe.

Member Function Documentation

◆ counts()

FunctionSpaceBuildCounts Feel::FunctionSpaceBuildInstrumentation::counts ( )
staticnoexcept

Read both construction counters.

Returns
an atomic snapshot of both process-local counters

◆ enabled()

bool Feel::FunctionSpaceBuildInstrumentation::enabled ( )
staticnoexcept

Report whether construction event recording is active.

Returns
true when recording is enabled

◆ reset()

void Feel::FunctionSpaceBuildInstrumentation::reset ( )
staticnoexcept

Reset both counters to zero.

Call while no function-space or DOF-table construction is running.

◆ setEnabled()

void Feel::FunctionSpaceBuildInstrumentation::setEnabled ( bool  enabled)
staticnoexcept

Enable or disable construction event recording.

Parameters
enabledwhether subsequent events are recorded