Main Content

target.ProfilingFunctionOverhead Class

Namespace: target

Capture function instrumentation overhead

Since R2021a

Description

Use a target.ProfilingFunctionOverhead object to capture the instrumentation overhead for profiling a function.

To create a target.ProfilingFunctionOverhead object, use the target.create function.

Properties

expand all

Specify instrumentation overhead for profiling a function.

Attributes:

GetAccess
public
SetAccess
public

Data Types: int

Object that provides the timer details for your processor.

Attributes:

GetAccess
public
SetAccess
public

Data Types: int

Specify the minimum number of iterations that benchmark program performs to compute instrumentation overhead values.

Attributes:

GetAccess
public
SetAccess
public

Data Types: int

Examples

collapse all

Manually specify the function instrumentation overhead for a timer.

Retrieve the target.Processor and target.Timer objects.

processor = target.get('Processor', 'myProcessorObjectId');
timer = target.get('Timer', 'myTimerObjectId');

Create a target.ProfilingFunctionOverhead object.

functionOverhead = target.create('ProfilingFunctionOverhead', ...
                             'Name', 'Timer Function Overhead');
functionOverhead.Value = 20;
functionOverhead.Counter = timer;

Version History

Introduced in R2021a