| |||
| Home > The Cycle Accurate Profiling Interface > The CAPICallback class > CAPICallback::allocateTraceSegment() |
This function allocates a trace segment. Profiling data might grow very large for long simulation. By setting an appropriate memory manager the CAPI client has full control of how much of the profile data resides in memory at a given time
virtual CAPITraceSegment_t* CAPICallback::allocateTraceSegment (
CAPIStream_t * stream) { return NULL }
where:
streamis the stream that uses this segment.
A profiling stream must have an active CAPITraceSegment_t at
all times.The size of the trace must be:
(stream->eventWidthInBytes) * (stream->eventsTraceSegmentSize).
The default implementation returns a NULL pointer.