16 #include <nn/pia/clone/clone_Definitions.h>
17 #include <nn/pia/clone/clone_CloneProfilerBase.h>
18 #include <nn/pia/pia_Assert.h>
42 template <u
int32_t STATION_NUM, u
int32_t LATEST_BUFFER_SIZE>
51 (LATEST_BUFFER_SIZE > 0) ? m_DispatchCountBuffer : NULL,
52 (LATEST_BUFFER_SIZE > 0) ? m_CountBuffer : NULL,
53 (LATEST_BUFFER_SIZE > 0) ? m_SizeBuffer : NULL,
54 (LATEST_BUFFER_SIZE > 0) ? m_NoCompressedSizeBuffer : NULL,
55 (LATEST_BUFFER_SIZE > 0) ? m_UnicastCountBuffer : NULL,
56 (LATEST_BUFFER_SIZE > 0) ? m_UnicastSizeBuffer : NULL,
57 (LATEST_BUFFER_SIZE > 0) ? m_ResendCountBuffer : NULL,
58 (LATEST_BUFFER_SIZE > 0) ? m_ResendSizeBuffer : NULL,
59 (LATEST_BUFFER_SIZE > 0) ? m_SystemCountBuffer : NULL,
60 (LATEST_BUFFER_SIZE > 0) ? m_SystemSizeBuffer : NULL,
63 m_TotalNoCompressedSizeBuffer,
64 m_TotalUnicastCountBuffer,
65 m_TotalUnicastSizeBuffer,
66 m_TotalResendCountBuffer,
67 m_TotalResendSizeBuffer,
68 m_TotalSystemCountBuffer,
69 m_TotalSystemSizeBuffer,
73 PIA_COMPILE_ASSERT(STATION_NUM > 0);
78 CloneProfilerBase::Print(pCloneProtocol);
82 static const int StationNum = STATION_NUM < 32 ? STATION_NUM : 32;
85 static const int DispatchCountBufferLength = LATEST_BUFFER_SIZE;
86 static const int CountBufferLength = LATEST_BUFFER_SIZE * StationNum;
87 static const int SizeBufferLength = LATEST_BUFFER_SIZE * StationNum;
89 uint32_t m_DispatchCountBuffer[DispatchCountBufferLength];
91 uint8_t m_CountBuffer[CountBufferLength];
92 uint16_t m_SizeBuffer[SizeBufferLength];
93 uint16_t m_NoCompressedSizeBuffer[SizeBufferLength];
95 uint8_t m_UnicastCountBuffer[CountBufferLength];
96 uint16_t m_UnicastSizeBuffer[SizeBufferLength];
98 uint8_t m_ResendCountBuffer[CountBufferLength];
99 uint16_t m_ResendSizeBuffer[SizeBufferLength];
101 uint8_t m_SystemCountBuffer[CountBufferLength];
102 uint16_t m_SystemSizeBuffer[SizeBufferLength];
105 static const int TotalCountBufferLength = StationNum;
106 static const int TotalSizeBufferLength = StationNum;
108 uint16_t m_TotalCountBuffer[TotalCountBufferLength];
109 uint32_t m_TotalSizeBuffer[TotalSizeBufferLength];
110 uint32_t m_TotalNoCompressedSizeBuffer[TotalSizeBufferLength];
112 uint16_t m_TotalUnicastCountBuffer[TotalCountBufferLength];
113 uint32_t m_TotalUnicastSizeBuffer[TotalSizeBufferLength];
115 uint16_t m_TotalResendCountBuffer[TotalCountBufferLength];
116 uint32_t m_TotalResendSizeBuffer[TotalSizeBufferLength];
118 uint16_t m_TotalSystemCountBuffer[TotalCountBufferLength];
119 uint32_t m_TotalSystemSizeBuffer[TotalSizeBufferLength];