17 #include <pia/common/common_definitions.h> 19 #include <pia/common/common_Singleton.h> 20 #include <pia/common/common_Watermark.h> 23 #define NN_PIA_WATERMARK_UPDATE(KEY, VALUE) \ 25 if(nn::pia::common::WatermarkManager::GetInstance()) \ 28 nn::pia::common::WatermarkManager::GetInstance()->GetWatermark(KEY)->Update(VALUE); \ 33 #define NN_PIA_WATERMARK_SETNAME(KEY, NAME) \ 35 if(nn::pia::common::WatermarkManager::GetInstance()) \ 38 nn::pia::common::WatermarkManager::GetInstance()->GetWatermark(KEY)->SetName(NAME); \ 43 #define NN_PIA_WATERMARK_TRACE(KEY, FLAG) \ 45 if(nn::pia::common::WatermarkManager::GetInstance()) \ 48 nn::pia::common::WatermarkManager::GetInstance()->GetWatermark(KEY)->Trace(FLAG); \ 82 static const int KEY_INET_RECEIVE_BUFFER_NUM = 2;
90 static const int KEY_MAX = WATERMARK_INSTANCES - 1;
181 virtual void Trace(u64 flag)
const;
This class manages a collection of Watermark instances (not supported).
Definition: common_WatermarkManager.h:74
static const int KEY_STATION_PROTOCOL_RELIABLE_SEND_BUFFER_NUM
This key is for the send buffer usage of the StationProtocolReliable instance.
Definition: common_WatermarkManager.h:85
static const int KEY_RELIABLE_PROTOCOL_RECEIVE_BUFFER_NUM
This key is for the receive buffer usage of the ReliableProtocol instance.
Definition: common_WatermarkManager.h:84
void DisableAllWatermark(void)
Disables the Update feature of all Watermark instances managed by the WatermarkManager instance...
static const int KEY_RECEIVETHREADSTREAM_BUFFER_NUM
This key is for the buffer usage of the receive thread.
Definition: common_WatermarkManager.h:81
static const int KEY_STATION_PROTOCOL_RELIABLE_RECEIVE_BUFFER_NUM
This key is for the receive buffer usage of the StationProtocolReliable instance. ...
Definition: common_WatermarkManager.h:86
void EnableAllWatermark(void)
Enables the Update feature of all Watermark instances managed by the WatermarkManager instance...
static nn::Result CreateInstance(void)
Creates the class instance in the common module (singleton pattern).
static const int KEY_SESSION_PROTOCOL_RELIABLE_RECEIVE_BUFFER_NUM
This key is for the Reliable receive buffer usage of the SessionProtocol instance.
Definition: common_WatermarkManager.h:88
static const int KEY_RELIABLE_PROTOCOL_SEND_BUFFER_NUM
This key is for the send buffer usage of the ReliableProtocol instance.
Definition: common_WatermarkManager.h:83
static const int WATERMARK_INSTANCES
The maximum number of Watermark instances managed by the WatermarkManager class.
Definition: common_WatermarkManager.h:77
static const int KEY_SENDTHREADSTREAM_BUFFER_NUM
This key is for the buffer usage of the send thread.
Definition: common_WatermarkManager.h:80
static const int KEY_SESSION_PROTOCOL_RELIABLE_SEND_BUFFER_NUM
This key is for the Reliable send buffer usage of the SessionProtocol instance.
Definition: common_WatermarkManager.h:87
virtual void Trace(u64 flag) const
Prints information useful for debugging.
Contains member functions for profiling things like peak values in the Pia library's resource usage (...
Definition: common_Watermark.h:35
Watermark * GetWatermark(int key)
Gets a Watermark instance (non-const version).
static const int KEY_UNRELIABLE_PROTOCOL_RECEIVE_BUFFER_NUM
This key is for the receive buffer usage of the UnreliableProtocol instance.
Definition: common_WatermarkManager.h:89
static WatermarkManager * GetInstance(void)
Gets the class instance in the common module (singleton pattern).
Definition: common_WatermarkManager.h:118
static void DestroyInstance(void)
Destroys the class instance in the common module (singleton pattern).
This is the common base class used inside the Pia library.
Definition: common_RootObject.h:40