Module |
|
Header |
/Engine/Source/Runtime/Core/Public/ProfilingDebugging/Histogram.h |
Include |
#include "ProfilingDebugging/Histogram.h" |
struct FHistogram
Fairly generic histogram for values that have natural lower bound and possibly no upper bound, e.g., frame time
Name | Description | ||
---|---|---|---|
|
Bins |
Bins themselves, should be continous in terms of [MinValue; UpperBound) and sorted ascending by MinValue. |
|
|
CountOfAllMeasures |
||
|
friend |
FHistogramBuilder |
This is exposed as a clean way to build bins while enforcing the condition mentioned above |
|
double |
MaximalMeasurement |
|
|
double |
MinimalMeasurement |
|
|
double |
SumOfAllMeasures |
Quick stats for all bins |
Name | Description | ||
---|---|---|---|
|
AddMeasurement ( |
Adds an observed measurement. |
|
|
AddMeasurement ( |
Adds an observed measurement (with a different thresholding key than the measurement, e.g., when accumulating time spent in a chart keyed on framerate). |
|
|
DefaultConvertBinToLabel ( |
Default stringifier for bins for use with DumpToJsonString. |
|
|
DumpToJsonString ( |
Returns a string in a Json format: [{"Bin":"BinName","Count":Count,"Sum":Sum},...]. |
|
|
DumpToJsonString() |
Same as DumpToJsonString but uses a DefaultConvertBinToLabel. |
|
|
DumpToJsonString2 ( |
Returns a string in a Json format: [{"BinName":{"Count":Count,"Sum":Sum}},...]. |
|
|
DumpToJsonString2() |
Same as DumpToJsonString2 but uses a DefaultConvertBinToLabel. |
|
|
DumpToLog ( |
Prints histogram contents to the log. |
|
|
double |
GetAverageOfAllMeasures() |
Returns the average of all measurements (essentially a shortcut for Sum/Count). |
|
double |
GetBinLowerBound ( |
Gets lower bound of the bin, i.e. minimum value that goes into it. |
|
GetBinObservationsCount ( |
Gets number of observations in the bin. |
|
|
double |
GetBinObservationsSum ( |
Gets sum of observations in the bin. |
|
double |
GetBinUpperBound ( |
Gets upper bound of the bin, i.e. first value that does not go into it. |
|
double |
GetMaxOfAllMeasures() |
Returns the maximum of all measurements. |
|
double |
GetMinOfAllMeasures() |
Returns the minimum of all measurements. |
|
GetNumBins() |
Gets number of bins. |
|
|
GetNumMeasurements() |
Returns the sum of all counts (the number of recorded measurements) |
|
|
double |
GetSumOfAllMeasures() |
Returns the sum of all measurements |
|
InitFromArray ( |
Inits histogram with the specified bin boundaries, with the final bucket extending to infinity (e.g., passing in 0,5 creates a [0..5) bucket and a [5..infinity) bucket) |
|
|
InitFromArray ( |
Inits histogram with the specified bin boundaries, with the final bucket extending to infinity (e.g., passing in 0,5 creates a [0..5) bucket and a [5..infinity) bucket) |
|
|
InitHitchTracking() |
Inits histogram to mimic our existing hitch buckets |
|
|
InitLinear ( |
Inits histogram with linear, equally sized bins |
|
|
Reset() |
Resets measurements, without resetting the configured bins. |
Name | Description | ||
---|---|---|---|
|
operator- ( |
||
|
operator+ ( |
||
|
operator+= ( |
Name |
Description |
|
---|---|---|
|
FBin |
Bin |