4.4.1. 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:

stream

is the stream that uses this segment.

Note

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.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0359B
Non-Confidential