A.12.6. CADIProfiling::CADIProfileGetMemory()

This gets the results of a profiling session for memory accesses. If called before profiling is stopped or before a legal set of profiling regions has been established, the return value must be CADI_STATUS_GeneralError.

CADIProfileGetMemory() is similar to CADIProfileGetExecution(). It enables future versions to separately modify the call signatures of the two functions.

virtual CADIReturn_t CADIProfiling::CADIProfileGetMemory(
                                      CADIProfileResultType_t *type, 
                                      uint32_t regIndex,
                                      uint32_t regionSlots,
                                      uint32_t *regionCount,
                                      CADIProfileResults_t *region) = 0;
type

tells the caller whether percentage statistics or an absolute count is being returned. See CADIProfileResultType_t.

regIndex

is the index into the internal buffer held by the target.

regionSlots

is the number of spaces requested to be filled. The target shall not fill more than this number of elements in the region array.

regionCount

is the actual number of regions set up by CADIProfileSetup plus one. The additional count indicates the other category.

region

corresponds to the regions set up by CADIProfileSetup. The array is allocated, and deallocated if applicable, by the caller and filled by the target. See CADIProfileResults_t.

Copyright © 2014 ARM. All rights reserved.ARM DUI 0842B
Non-ConfidentialID111014