Main Content

代码执行探查

查看和分析代码节的执行配置文件

利用代码执行探查可以:

  • 确定生成的代码是否满足目标硬件的实时要求。

  • 确定哪些代码节需要进行性能改进。

您可以配置软件在环 (SIL)、处理器在环 (PIL) 或基于 XCP 的外部模式仿真,为您生成的代码产生执行时间指标。可以使用代码执行报告或仿真数据检查器来分析执行时间。

全部展开

target.ProfilingFreezingOverheadCapture freezing and unfreezing instrumentation overhead
target.ProfilingFunctionOverheadCapture function instrumentation overhead
target.ProfilingTaskOverheadCapture task instrumentation overhead
target.TimerProvide timer details for processor

函数

全部展开

annotate对探查的模型组件着色或打开模型并对探查的组件着色
display生成描述如何打开代码执行探查报告的消息
ExecutionTimeInTicksGet execution times in timer ticks for profiled section of code
ExecutionTimeInSecondsGet execution time in seconds for profiled section of code
Name获取探查的代码节的名称
Number获取唯一标识探查的代码节的编号
NumCallsTotal number of calls to profiled code section
scheduleVisualize task scheduling
SectionsGet array of coder.profile.ExecutionTimeSection objects for profiled code sections
SelfTimeInTicksGet number of timer ticks recorded for profiled code section, excluding time spent in child functions
Time获取代码节的仿真时间
timelineDisplay invocations of code sections over execution timeline
TimerTicksPerSecondGet and set number of timer ticks per second
TotalExecutionTimeInTicksGet total number of timer ticks recorded for profiled code section
TotalSelfTimeInTicksGet total number of timer ticks recorded for profiled code section, excluding time spent in child functions
TotalTurnaroundTimeInTicksGet total number of timer ticks between start and finish of the profiled code section over the entire simulation
TurnaroundTimeInTicksGet number of timer ticks between start and finish of the profiled code section
reportOpen code execution profiling report and specify display of time measurements
MaximumExecutionTimeCallNumGet the call number at which maximum number of timer ticks occurred
MaximumExecutionTimeInTicksGet maximum number of timer ticks for single invocation of profiled code section
MaximumSelfTimeInTicksGet the maximum number of timer ticks recorded for profiled code section, excluding time spent in child functions
MaximumTurnaroundTimeCallNum Get call number of the maximum number of timer ticks between start and finish of a single invocation of profiled code section
MaximumTurnaroundTimeInTicksGet maximum number of timer ticks between start and finish of a single invocation of profiled code section

主题

概述

探查配置和结果