17 #include <pia/clone/clone_definitions.h> 18 #include <pia/clone/clone_CloneProfilerBase.h> 19 #include <pia/assert.h> 45 template <u32 STATION_NUM, u32 LATEST_BUFFER_SIZE>
54 (LATEST_BUFFER_SIZE > 0) ? reinterpret_cast<u32*>(&m_aBuffer[cDispatchCountBufferOffset]) : NULL,
55 (LATEST_BUFFER_SIZE > 0) ? &m_aBuffer[cCountBufferOffset] : NULL,
56 (LATEST_BUFFER_SIZE > 0) ? reinterpret_cast<u16*>(&m_aBuffer[cSizeBufferOffset]) : NULL,
57 reinterpret_cast<u16*>(&m_aBuffer[cTotalCountBufferOffset]),
58 reinterpret_cast<u32*>(&m_aBuffer[cTotalSizeBufferOffset]),
62 PIA_COMPILE_ASSERT(STATION_NUM > 0);
69 cStationNum = STATION_NUM < 32 ? STATION_NUM : 32,
70 cDispatchCountBufferSize =
sizeof(u32) * LATEST_BUFFER_SIZE,
71 cCountBufferSize =
sizeof(u8) * LATEST_BUFFER_SIZE * cStationNum,
72 cSizeBufferSize =
sizeof(u16) * LATEST_BUFFER_SIZE * cStationNum,
73 cTotalCountBufferSize =
sizeof(u16) * cStationNum,
74 cTotalSizeBufferSize =
sizeof(u32) * cStationNum,
75 cDispatchCountBufferOffset = 0,
76 cTotalSizeBufferOffset = cDispatchCountBufferOffset + cDispatchCountBufferSize,
77 cTotalCountBufferOffset = cTotalSizeBufferOffset + cTotalSizeBufferSize,
78 cSizeBufferOffset = cTotalCountBufferOffset + cTotalCountBufferSize,
79 cCountBufferOffset = cSizeBufferOffset + cSizeBufferSize,
80 cBufferSize = cCountBufferOffset + cCountBufferSize
83 PIA_ATTRIBUTE_ALIGN(4) u8 m_aBuffer[cBufferSize];
This base class manages PiaClone profiling.
Definition: clone_CloneProfilerBase.h:33
This class manages PiaClone profiling.
Definition: clone_CloneProfiler.h:46
CloneProfiler()
Instantiates an object with default parameters (default constructor).
Definition: clone_CloneProfiler.h:52