20 #ifndef RIPPLE_CORE_LOADMONITOR_H_INCLUDED
21 #define RIPPLE_CORE_LOADMONITOR_H_INCLUDED
23 #include <ripple/basics/UptimeClock.h>
24 #include <ripple/beast/utility/Journal.h>
25 #include <ripple/core/LoadEvent.h>
void addSamples(int count, std::chrono::milliseconds latency)
std::chrono::milliseconds mTargetLatencyAvg
UptimeClock::time_point mLastUpdate
bool isOverTarget(std::chrono::milliseconds avg, std::chrono::milliseconds peak)
A generic endpoint for log messages.
LoadMonitor(beast::Journal j)
void setTargetLatency(std::chrono::milliseconds avg, std::chrono::milliseconds pk)
std::chrono::milliseconds mLatencyMSAvg
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::chrono::milliseconds mLatencyMSPeak
std::chrono::milliseconds mTargetLatencyPk
std::chrono::milliseconds latencyAvg
std::chrono::milliseconds latencyPeak
void addLoadSample(LoadEvent const &sample)