proxygen
|
#include <folly/stats/TimeseriesHistogram.h>
#include <random>
#include <folly/portability/GTest.h>
#include <folly/stats/TimeseriesHistogram-defs.h>
Go to the source code of this file.
Namespaces | |
IntMTMHTS | |
IntMHTS | |
Enumerations | |
enum | Levels |
enum | Levels |
Functions | |
TEST (TimeseriesHistogram, Percentile) | |
TEST (TimeseriesHistogram, String) | |
TEST (TimeseriesHistogram, Clear) | |
TEST (TimeseriesHistogram, Basic) | |
TEST (TimeseriesHistogram, QueryByInterval) | |
TEST (TimeseriesHistogram, SingleUniqueValue) | |
enum Levels |
Definition at line 30 of file TimeseriesHistogramTest.cpp.
enum Levels |
Definition at line 47 of file TimeseriesHistogramTest.cpp.
TEST | ( | TimeseriesHistogram | , |
Percentile | |||
) |
Definition at line 69 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), IntMHTS::ALLTIME, EXPECT_EQ, folly::TimeseriesHistogram< T, CT, C >::getBucket(), folly::TimeseriesHistogram< T, CT, C >::getBucketSize(), folly::TimeseriesHistogram< T, CT, C >::getMax(), folly::TimeseriesHistogram< T, CT, C >::getMin(), folly::TimeseriesHistogram< T, CT, C >::getNumBuckets(), folly::TimeseriesHistogram< T, CT, C >::getPercentileBucketMin(), folly::TimeseriesHistogram< T, CT, C >::getPercentileEstimate(), h, i, min, IntMHTS::NUM_LEVELS, folly::MultiLevelTimeSeries< VT, CT >::numLevels(), random(), and folly::TimeseriesHistogram< T, CT, C >::update().
TEST | ( | TimeseriesHistogram | , |
String | |||
) |
Definition at line 113 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), EXPECT_EQ, folly::TimeseriesHistogram< T, CT, C >::getNumLevels(), folly::TimeseriesHistogram< T, CT, C >::getString(), i, IntMHTS::NUM_LEVELS, random(), and folly::TimeseriesHistogram< T, CT, C >::update().
TEST | ( | TimeseriesHistogram | , |
Clear | |||
) |
Definition at line 169 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), IntMHTS::ALLTIME, b, folly::TimeseriesHistogram< T, CT, C >::clear(), folly::MultiLevelTimeSeries< VT, CT >::count(), EXPECT_EQ, folly::TimeseriesHistogram< T, CT, C >::getBucket(), folly::TimeseriesHistogram< T, CT, C >::getNumBuckets(), folly::TimeseriesHistogram< T, CT, C >::getPercentileBucketMin(), folly::TimeseriesHistogram< T, CT, C >::getPercentileEstimate(), IntMHTS::HOUR, i, IntMHTS::MINUTE, now(), and IntMHTS::NUM_LEVELS.
TEST | ( | TimeseriesHistogram | , |
Basic | |||
) |
Definition at line 208 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), IntMHTS::ALLTIME, folly::TimeseriesHistogram< T, CT, C >::avg(), b, folly::TimeseriesHistogram< T, CT, C >::count(), count, folly::MultiLevelTimeSeries< VT, CT >::count(), EXPECT_EQ, folly::TimeseriesHistogram< T, CT, C >::getBucket(), folly::TimeseriesHistogram< T, CT, C >::getNumBuckets(), folly::TimeseriesHistogram< T, CT, C >::getPercentileBucketMin(), IntMHTS::HOUR, i, IntMHTS::MINUTE, now(), IntMHTS::NUM_LEVELS, folly::TimeseriesHistogram< T, CT, C >::rate(), folly::TimeseriesHistogram< T, CT, C >::sum(), and folly::TimeseriesHistogram< T, CT, C >::update().
TEST | ( | TimeseriesHistogram | , |
QueryByInterval | |||
) |
Definition at line 382 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), c, folly::TimeseriesHistogram< T, CT, C >::count(), count, folly::test::end(), EXPECT_EQ, EXPECT_GE, EXPECT_LE, folly::TimeseriesHistogram< T, CT, C >::getPercentileBucketMin(), i, min, IntMHTS::NUM_LEVELS, s, start, folly::TimeseriesHistogram< T, CT, C >::sum(), and folly::TimeseriesHistogram< T, CT, C >::update().
TEST | ( | TimeseriesHistogram | , |
SingleUniqueValue | |||
) |
Definition at line 538 of file TimeseriesHistogramTest.cpp.
References folly::TimeseriesHistogram< T, CT, C >::addValue(), EXPECT_EQ, EXPECT_NEAR, folly::TimeseriesHistogram< T, CT, C >::getPercentileEstimate(), h, IntMHTS::NUM_LEVELS, folly::TimeseriesHistogram< T, CT, C >::update(), value, and values().