|
xrpld
|


Public Types | |
| using | SteadyClock = std::chrono::steady_clock |
| using | SystemClock = std::chrono::system_clock |
| using | SteadyTimePoint = std::chrono::time_point<SteadyClock> |
| using | SystemTimePoint = std::chrono::time_point<SystemClock> |
| 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, SteadyTimePoint startTime, int instance)=0 |
| Log job executing. | |
Private Member Functions | |
| void | rpcStart (std::string_view method, std::uint64_t requestId) override |
| Log start of RPC call. | |
| void | rpcFinish (std::string_view method, std::uint64_t requestId) override |
| Log successful finish of RPC call. | |
| void | rpcError (std::string_view method, std::uint64_t requestId) override |
| Log errored RPC call. | |
| void | jobQueue (JobType const type) override |
| Log queued job. | |
| 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. | |
| json::Value | countersJson () const override |
| Render performance counters in Json. | |
| json::Value | currentJson () const override |
| Render currently executing jobs and RPC calls and durations in Json. | |
| void | resizeJobs (int const resize) override |
| Ensure enough room to store each currently executing job. | |
| void | rotate () override |
| Rotate perf log file. | |
Definition at line 22 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 xrpl::perf::PerfLog.
Definition at line 25 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log successful finish of RPC call.
| method | RPC command |
| requestId | Unique identifier to track command |
Implements xrpl::perf::PerfLog.
Definition at line 30 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log errored RPC call.
| method | RPC command |
| requestId | Unique identifier to track command |
Implements xrpl::perf::PerfLog.
Definition at line 35 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log queued job.
| type | Job type |
Implements xrpl::perf::PerfLog.
Definition at line 40 of file Workers_test.cpp.
|
overrideprivate |
Definition at line 45 of file Workers_test.cpp.
|
overrideprivatevirtual |
Log job finishing.
| type | Job type |
| dur | Duration running in microseconds |
| instance | Jobqueue worker thread instance |
Implements xrpl::perf::PerfLog.
Definition at line 54 of file Workers_test.cpp.
|
nodiscardoverrideprivatevirtual |
Render performance counters in Json.
Implements xrpl::perf::PerfLog.
Definition at line 59 of file Workers_test.cpp.
|
nodiscardoverrideprivatevirtual |
Render currently executing jobs and RPC calls and durations in Json.
Implements xrpl::perf::PerfLog.
Definition at line 65 of file Workers_test.cpp.
|
overrideprivatevirtual |
Ensure enough room to store each currently executing job.
Implements xrpl::perf::PerfLog.
Definition at line 71 of file Workers_test.cpp.
|
overrideprivatevirtual |
Rotate perf log file.
Implements xrpl::perf::PerfLog.
Definition at line 76 of file Workers_test.cpp.
|
virtualinherited |
Reimplemented in xrpl::perf::PerfLogImp.
|
virtualinherited |
Reimplemented in xrpl::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 xrpl::perf::PerfLogImp.