主要内容

target.ProfilingFreezingOverhead 类

命名空间: target

捕获冻结和解冻插桩开销

描述

使用 target.ProfilingFreezingOverhead 对象捕获冻结和解冻计时器的插桩开销。

要创建 target.ProfilingFreezingOverhead 对象,请使用 target.create 函数。

属性

全部展开

指定冻结和解冻计时器的插桩开销。

特性:

GetAccess
public
SetAccess
public

数据类型: int

提供处理器计时器详细信息的对象。

特性:

GetAccess
public
SetAccess
public

数据类型: int

指定基准程序为计算插桩开销值而执行的最小迭代次数。

特性:

GetAccess
public
SetAccess
public

数据类型: int

示例

全部折叠

手动指定计时器的函数插桩开销。

检索 target.Processortarget.Timer 对象。

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

创建一个 target.ProfilingFreezingOverhead 对象。

freezingOverhead = target.create('ProfilingFreezingOverhead', ...
                                 'Name', 'Timer Freezing Overhead');
freezingOverhead.Value = 30;
freezingOverhead.Counter = timer;

版本历史记录

在 R2021a 中推出