rippled
|
Public Types | |
using | steady_clock = std::chrono::steady_clock |
using | system_clock = std::chrono::system_clock |
using | steady_time_point = std::chrono::time_point< steady_clock > |
using | system_time_point = std::chrono::time_point< system_clock > |
using | seconds = std::chrono::seconds |
using | milliseconds = std::chrono::milliseconds |
using | microseconds = std::chrono::microseconds |
Public Member Functions | |
virtual void | start () |
virtual void | stop () |
virtual void | jobStart (JobType const type, microseconds dur, steady_time_point startTime, int instance)=0 |
Log job executing. More... | |
Private Member Functions | |
void | rpcStart (std::string const &method, std::uint64_t requestId) override |
Log start of RPC call. More... | |
void | rpcFinish (std::string const &method, std::uint64_t requestId) override |
Log successful finish of RPC call. More... | |
void | rpcError (std::string const &method, std::uint64_t dur) override |
Log errored RPC call. More... | |
void | jobQueue (JobType const type) override |
Log queued job. More... | |
void | jobStart (JobType const type, std::chrono::microseconds dur, std::chrono::time_point< std::chrono::steady_clock > startTime, int instance) override |
void | jobFinish (JobType const type, std::chrono::microseconds dur, int instance) override |
Log job finishing. More... | |
Json::Value | countersJson () const override |
Render performance counters in Json. More... | |
Json::Value | currentJson () const override |
Render currently executing jobs and RPC calls and durations in Json. More... | |
void | resizeJobs (int const resize) override |
Ensure enough room to store each currently executing job. More... | |
void | rotate () override |
Rotate perf log file. More... | |
Definition at line 40 of file Workers_test.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
overrideprivatevirtual |
Log start of RPC call.
method | RPC command |
requestId | Unique identifier to track command |
Implements ripple::perf::PerfLog.
Definition at line 43 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log successful finish of RPC call.
method | RPC command |
requestId | Unique identifier to track command |
Implements ripple::perf::PerfLog.
Definition at line 48 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log errored RPC call.
method | RPC command |
requestId | Unique identifier to track command |
Implements ripple::perf::PerfLog.
Definition at line 53 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log queued job.
type | Job type |
Implements ripple::perf::PerfLog.
Definition at line 58 of file Workers_test.cpp.
|
overrideprivate |
Definition at line 63 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log job finishing.
type | Job type |
dur | Duration running in microseconds |
instance | Jobqueue worker thread instance |
Implements ripple::perf::PerfLog.
Definition at line 72 of file Workers_test.cpp.
|
overrideprivatevirtual |
Render performance counters in Json.
Implements ripple::perf::PerfLog.
Definition at line 78 of file Workers_test.cpp.
|
overrideprivatevirtual |
Render currently executing jobs and RPC calls and durations in Json.
Implements ripple::perf::PerfLog.
Definition at line 84 of file Workers_test.cpp.
|
overrideprivatevirtual |
Ensure enough room to store each currently executing job.
Implements ripple::perf::PerfLog.
Definition at line 90 of file Workers_test.cpp.
|
overrideprivatevirtual |
Rotate perf log file.
Implements ripple::perf::PerfLog.
Definition at line 95 of file Workers_test.cpp.
|
virtualinherited |
Reimplemented in ripple::perf::PerfLogImp.
|
virtualinherited |
Reimplemented in ripple::perf::PerfLogImp.
|
pure virtualinherited |
Log job executing.
type | Job type |
dur | Duration enqueued in microseconds |
startTime | Time that execution began |
instance | JobQueue worker thread instance |
Implemented in ripple::perf::PerfLogImp.