Navigation
API > API/Runtime > API/Runtime/NetCore
Inherited class for a sample producer, which outputs samples to a consumer of the specified class.
The consumer must implement: void AddSample(double Val)
If the consumer wants to peek at each individual measurement that makes up the sample (for e.g. determining Min/Max measurements), then the consumer must implement: void PeekMeasurement(double TimeVal, double Val)
| Name | TSampleProducer |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Analytics/NetStatsUtils.h |
| Include Path | #include "Net/Core/Analytics/NetStatsUtils.h" |
Syntax
template<typename ConsumerType>
class TSampleProducer
Derived Classes
Structs
| Name | Remarks |
|---|---|
| CPeekMeasurements | |
| CSampleConsumer |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Consumer | ConsumerType * | The consumer object that receives samples | Net/Core/Analytics/NetStatsUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetConsumer
(
ConsumerType* InConsumer |
Sets the consumer object to output samples to. | Net/Core/Analytics/NetStatsUtils.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OutputSample
(
double Value |
Called by subclasses to output a sample to the consumer. | Net/Core/Analytics/NetStatsUtils.h | |
void PeekMeasurement
(
double TimeVal, |
Called by subclasses to let the consumer peek at individual measurements | Net/Core/Analytics/NetStatsUtils.h | |
void PeekMeasurement
(
double TimeVal, |
Net/Core/Analytics/NetStatsUtils.h |