matlabshared.targetsdk.Profiler class
Package:matlabshared.targetsdk
Superclasses:
Code execution profiler that collects timing information for generated code
Description
AProfiler
object that specifies the code execution profiler that collects time information for generated code.
Construction
creates aH
= Profiler(profilername
)Profiler
object and sets theName
property toprofilername
.
Input Arguments
profilername
—Name of profiler configuration
string
Profiler配置的名称,指定为字符串。
例子:
Data Types:char
Properties
Name
—Name of profiler configuration
string
Name ofProfiler
目标支持的对象。金宝app默认值为''
.
Data Types:char
SourceFile
—Source code file for the profiling function
string
Name of the file that contains the source code of the profiler function. The default is''
.
The file specification must include a full path. The path can include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Data Types:char
包括File
—Include file for the profiling function
string
Name of the file that contains the declarations for the profiling function. The default is''
.
The file must include a full path. The path can include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Data Types:char
TimerReadFcn
—Timer counter function
string
Name of the source code function that returns the profiling timer counter value. You must implement this function in a source file and specify the source file with propertySourceFile
.
Data Types:char
TimerDataType
—Data type of the profiling function
string
Name of the data type of the return value of the profiling functionTimerReadFcn
. The default is'uint32'
.
Data Types:char
TimerTicksPerSecond
—Resolution of the profiling function
整数
The resolution of the profiling timer in ticks per second. The default is1e9
.
Data Types:double
定时计数
—Denotes if profiling function counts up
logical
The flag that denotes whether the profiling function counts up. The default is真的
.
Data Types:logical
Storecoreid
—表示分析功能是否存储核心ID
logical
The flag that denotes whether the profiling function stores the ID of the core on which it executes. The default is真的
.
Data Types:logical
printdata
—表示分析功能是否打印数据
logical
The flag that denotes whether the profiling function prints the profiling data. The default is真的
.
仅当生成的代码与文件系统上的硬件上运行,例如Linux,才可以打印数据®. If the generated code runs on hardware without a file system, data is collected in a source code buffer. The default is真的
.
Data Types:logical
PrintInstantly
—Denotes if profiling function prints data instantly
logical
表示分析函数是否立即打印分析数据的标志。设置为真的
, the profile data prints to the standard output as soon as it is collected. Otherwise, the profile data prints when the generated code terminates. The default is真的
.
如果the profiling data prints instantly, the amount of data that can be collected is not limited by the profiling buffer size. However, since the data prints as it is collected, executing the print instruction may take some time. This can greatly affect the profiling timing data.
Data Types:logical
buffername
—Buffer that holds the profiling data
string
The name of the buffer in the generated code that holds the profiling data. The default is'profilingData'
.
Data Types:char
数据长度
—Size of the buffer that holds the profiling data
整数
生成的代码中的缓冲区大小,该代码容纳了分析数据。默认值为400
.
一旦缓冲区完整,分析数据的收集就会停止。
Data Types:double
getDatafcn
—MATLAB®检索分析数据的功能
string
The name of the MATLAB function that retrieves the profiling data from a file or a buffer on hardware and copies the data to the MATLAB host computer. The default is''
.
检索的来源取决于printdata
property. If set to真的
,该函数从文件中检索Profiler数据。如果false
, the function retrieves the profiler data from the profiling buffer in the generated code running on the hardware.
Data Types:char
版本历史
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择一个网站
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- AméricaLatina(Español)
- Canada(English)
- United States(English)
欧洲
- Belgium(English)
- 丹麦(English)
- Deutschland(德意志)
- España(Español)
- Finland(English)
- 法国(Français)
- 爱尔兰(English)
- 意大利(Italiano)
- Luxembourg(English)
- Netherlands(English)
- 挪威(English)
- Österreich(德意志)
- Portugal(English)
- Sweden(English)
- 瑞士
- 英国(English)