|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <RuntimeMetrics.h>
Classes | |
| class | RuntimeSample |
Public Member Functions | |
| void | RecordMapUpdateCompleted (uint32 pendingRequests) |
| void | RecordMapUpdatePass (uint32 mapCount) |
| void | RecordMapUpdateScheduled (uint32 pendingRequests) |
| void | RecordMapUpdateScheduleFailed (uint32 pendingRequests) |
| void | RecordMapUpdateWait (uint32 waitMs) |
| void | RecordSpellCastFailure (uint32 spellId, uint32 failure, uint32 customError, uint32 opcode) |
| void | RecordWorldSessionPacketProcessed (uint32 queueDepth) |
| void | RecordWorldSessionPacketQueued (uint32 queueDepth) |
| void | RecordWorldUpdate (uint32 diffMs) |
| void | Reset () |
| RuntimeMetrics () | |
| RuntimeMetricsSnapshot | Snapshot () const |
Private Attributes | |
| std::atomic< uint64 > | _mapUpdateCompleted |
| RuntimeSample | _mapUpdatePasses |
| std::atomic< uint32 > | _mapUpdatePending |
| std::atomic< uint32 > | _mapUpdatePendingHighWater |
| std::atomic< uint64 > | _mapUpdateScheduled |
| std::atomic< uint64 > | _mapUpdateScheduleFailures |
| RuntimeSample | _mapUpdateWait |
| std::atomic< uint64 > | _spellCastFailures |
| std::atomic< uint32 > | _spellCastLastCustomError |
| std::atomic< uint32 > | _spellCastLastFailure |
| std::atomic< uint32 > | _spellCastLastOpcode |
| std::atomic< uint32 > | _spellCastLastSpellId |
| std::atomic< uint64 > | _worldSessionPacketsProcessed |
| std::atomic< uint64 > | _worldSessionPacketsQueued |
| std::atomic< uint32 > | _worldSessionQueueDepth |
| std::atomic< uint32 > | _worldSessionQueueDepthHighWater |
| std::atomic< uint64 > | _worldSessionQueueDepthHighWaterEvents |
| RuntimeSample | _worldUpdate |
Definition at line 75 of file RuntimeMetrics.h.
| Skyfire::Diagnostics::RuntimeMetrics::RuntimeMetrics | ( | ) |
Definition at line 83 of file RuntimeMetrics.cpp.
References _mapUpdateCompleted, _mapUpdatePasses, _mapUpdatePending, _mapUpdatePendingHighWater, _mapUpdateScheduled, _mapUpdateScheduleFailures, _mapUpdateWait, _spellCastFailures, _spellCastLastCustomError, _spellCastLastFailure, _spellCastLastOpcode, _spellCastLastSpellId, _worldSessionPacketsProcessed, _worldSessionPacketsQueued, _worldSessionQueueDepth, _worldSessionQueueDepthHighWater, _worldSessionQueueDepthHighWaterEvents, and _worldUpdate.
| void Skyfire::Diagnostics::RuntimeMetrics::RecordMapUpdateCompleted | ( | uint32 | pendingRequests | ) |
Definition at line 142 of file RuntimeMetrics.cpp.
References _mapUpdateCompleted, and _mapUpdatePending.
Referenced by MapUpdater::update_finished().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordMapUpdatePass | ( | uint32 | mapCount | ) |
Definition at line 130 of file RuntimeMetrics.cpp.
References _mapUpdatePasses.
Referenced by MapManager::Update().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordMapUpdateScheduled | ( | uint32 | pendingRequests | ) |
Definition at line 135 of file RuntimeMetrics.cpp.
References _mapUpdatePending, _mapUpdatePendingHighWater, and _mapUpdateScheduled.
Referenced by MapUpdater::schedule_update().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordMapUpdateScheduleFailed | ( | uint32 | pendingRequests | ) |
Definition at line 148 of file RuntimeMetrics.cpp.
References _mapUpdatePending, and _mapUpdateScheduleFailures.
Referenced by MapUpdater::schedule_update().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordMapUpdateWait | ( | uint32 | waitMs | ) |
Definition at line 154 of file RuntimeMetrics.cpp.
References _mapUpdateWait.
Referenced by MapUpdater::wait().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordSpellCastFailure | ( | uint32 | spellId, |
| uint32 | failure, | ||
| uint32 | customError, | ||
| uint32 | opcode ) |
Definition at line 173 of file RuntimeMetrics.cpp.
References _spellCastFailures, _spellCastLastCustomError, _spellCastLastFailure, _spellCastLastOpcode, and _spellCastLastSpellId.
Referenced by Spell::SendCastResult().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordWorldSessionPacketProcessed | ( | uint32 | queueDepth | ) |
Definition at line 167 of file RuntimeMetrics.cpp.
References _worldSessionPacketsProcessed, and _worldSessionQueueDepth.
Referenced by WorldSession::Update().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordWorldSessionPacketQueued | ( | uint32 | queueDepth | ) |
Definition at line 159 of file RuntimeMetrics.cpp.
References _worldSessionPacketsQueued, _worldSessionQueueDepth, _worldSessionQueueDepthHighWater, and _worldSessionQueueDepthHighWaterEvents.
Referenced by WorldSession::QueuePacket().
| void Skyfire::Diagnostics::RuntimeMetrics::RecordWorldUpdate | ( | uint32 | diffMs | ) |
Definition at line 125 of file RuntimeMetrics.cpp.
References _worldUpdate.
Referenced by World::Update().
| void Skyfire::Diagnostics::RuntimeMetrics::Reset | ( | ) |
Definition at line 103 of file RuntimeMetrics.cpp.
References _mapUpdateCompleted, _mapUpdatePasses, _mapUpdatePending, _mapUpdatePendingHighWater, _mapUpdateScheduled, _mapUpdateScheduleFailures, _mapUpdateWait, _spellCastFailures, _spellCastLastCustomError, _spellCastLastFailure, _spellCastLastOpcode, _spellCastLastSpellId, _worldSessionPacketsProcessed, _worldSessionPacketsQueued, _worldSessionQueueDepth, _worldSessionQueueDepthHighWater, _worldSessionQueueDepthHighWaterEvents, and _worldUpdate.
Referenced by server_commandscript::HandleServerMetricsResetCommand().
| RuntimeMetricsSnapshot Skyfire::Diagnostics::RuntimeMetrics::Snapshot | ( | ) | const |
Definition at line 182 of file RuntimeMetrics.cpp.
References _mapUpdateCompleted, _mapUpdatePasses, _mapUpdatePending, _mapUpdatePendingHighWater, _mapUpdateScheduled, _mapUpdateScheduleFailures, _mapUpdateWait, _spellCastFailures, _spellCastLastCustomError, _spellCastLastFailure, _spellCastLastOpcode, _spellCastLastSpellId, _worldSessionPacketsProcessed, _worldSessionPacketsQueued, _worldSessionQueueDepth, _worldSessionQueueDepthHighWater, _worldSessionQueueDepthHighWaterEvents, _worldUpdate, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::Completed, Skyfire::Diagnostics::SpellCastMetricsSnapshot::Failures, Skyfire::Diagnostics::SpellCastMetricsSnapshot::LastCustomError, Skyfire::Diagnostics::SpellCastMetricsSnapshot::LastFailure, Skyfire::Diagnostics::SpellCastMetricsSnapshot::LastOpcode, Skyfire::Diagnostics::SpellCastMetricsSnapshot::LastSpellId, Skyfire::Diagnostics::RuntimeMetricsSnapshot::MapUpdatePasses, Skyfire::Diagnostics::RuntimeMetricsSnapshot::MapUpdater, Skyfire::Diagnostics::WorldSessionMetricsSnapshot::PacketsProcessed, Skyfire::Diagnostics::WorldSessionMetricsSnapshot::PacketsQueued, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::Pending, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::PendingHighWater, Skyfire::Diagnostics::WorldSessionMetricsSnapshot::QueueDepth, Skyfire::Diagnostics::WorldSessionMetricsSnapshot::QueueDepthHighWater, Skyfire::Diagnostics::WorldSessionMetricsSnapshot::QueueDepthHighWaterEvents, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::Scheduled, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::ScheduleFailures, Skyfire::Diagnostics::RuntimeMetricsSnapshot::SpellCast, Skyfire::Diagnostics::MapUpdaterMetricsSnapshot::Wait, Skyfire::Diagnostics::RuntimeMetricsSnapshot::WorldSession, and Skyfire::Diagnostics::RuntimeMetricsSnapshot::WorldUpdate.
|
private |
Definition at line 116 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateCompleted(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 113 of file RuntimeMetrics.h.
Referenced by RecordMapUpdatePass(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 118 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateCompleted(), RecordMapUpdateScheduled(), RecordMapUpdateScheduleFailed(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 119 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateScheduled(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 115 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateScheduled(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 117 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateScheduleFailed(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 114 of file RuntimeMetrics.h.
Referenced by RecordMapUpdateWait(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 125 of file RuntimeMetrics.h.
Referenced by RecordSpellCastFailure(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 128 of file RuntimeMetrics.h.
Referenced by RecordSpellCastFailure(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 127 of file RuntimeMetrics.h.
Referenced by RecordSpellCastFailure(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 129 of file RuntimeMetrics.h.
Referenced by RecordSpellCastFailure(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 126 of file RuntimeMetrics.h.
Referenced by RecordSpellCastFailure(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 121 of file RuntimeMetrics.h.
Referenced by RecordWorldSessionPacketProcessed(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 120 of file RuntimeMetrics.h.
Referenced by RecordWorldSessionPacketQueued(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 122 of file RuntimeMetrics.h.
Referenced by RecordWorldSessionPacketProcessed(), RecordWorldSessionPacketQueued(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 123 of file RuntimeMetrics.h.
Referenced by RecordWorldSessionPacketQueued(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 124 of file RuntimeMetrics.h.
Referenced by RecordWorldSessionPacketQueued(), Reset(), RuntimeMetrics(), and Snapshot().
|
private |
Definition at line 112 of file RuntimeMetrics.h.
Referenced by RecordWorldUpdate(), Reset(), RuntimeMetrics(), and Snapshot().