Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample Class Reference

Public Member Functions

void Record (uint32 value, uint32 slowThresholdMs=0)
void Reset ()
 RuntimeSample ()
RuntimeSampleSnapshot Snapshot () const

Private Attributes

std::atomic< uint32_last
std::atomic< uint32_maximum
std::atomic< uint64_sampleCount
std::atomic< uint64_slowSamples
std::atomic< uint64_total

Detailed Description

Definition at line 95 of file RuntimeMetrics.h.

Constructor & Destructor Documentation

◆ RuntimeSample()

Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::RuntimeSample ( )

Definition at line 46 of file RuntimeMetrics.cpp.

References _last, _maximum, _sampleCount, _slowSamples, and _total.

Member Function Documentation

◆ Record()

void Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::Record ( uint32 value,
uint32 slowThresholdMs = 0 )

Definition at line 58 of file RuntimeMetrics.cpp.

References _last, _maximum, _sampleCount, _slowSamples, and _total.

◆ Reset()

void Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::Reset ( )

Definition at line 49 of file RuntimeMetrics.cpp.

References _last, _maximum, _sampleCount, _slowSamples, and _total.

◆ Snapshot()

Member Data Documentation

◆ _last

std::atomic<uint32> Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::_last
private

Definition at line 108 of file RuntimeMetrics.h.

Referenced by Record(), Reset(), RuntimeSample(), and Snapshot().

◆ _maximum

std::atomic<uint32> Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::_maximum
private

Definition at line 109 of file RuntimeMetrics.h.

Referenced by Record(), Reset(), RuntimeSample(), and Snapshot().

◆ _sampleCount

std::atomic<uint64> Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::_sampleCount
private

Definition at line 105 of file RuntimeMetrics.h.

Referenced by Record(), Reset(), RuntimeSample(), and Snapshot().

◆ _slowSamples

std::atomic<uint64> Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::_slowSamples
private

Definition at line 106 of file RuntimeMetrics.h.

Referenced by Record(), Reset(), RuntimeSample(), and Snapshot().

◆ _total

std::atomic<uint64> Skyfire::Diagnostics::RuntimeMetrics::RuntimeSample::_total
private

Definition at line 107 of file RuntimeMetrics.h.

Referenced by Record(), Reset(), RuntimeSample(), and Snapshot().


The documentation for this class was generated from the following files: