soc.sdk.Profiler Class
Namespace: soc.sdk
Code execution profiler that collects timing information for generated code
Description
A Profiler object that specifies the code execution
profiler that collects time information for generated code.
Creation
creates a profilerObj = soc.sdk.Profiler(name)Profiler object and sets the Name property to
name.
Input Arguments
Name of profiler configuration, specified as a string.
Example: "MyProfiler"
Data Types: string | char
Properties
Name of Profiler object available to the supported
hardware.
Example: 'MyProfiler'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Name of the file that contains the source code of the profiler function. The file specification must include a full path.
Note
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.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Name of the file that contains the declarations for the profiling function.
Note
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.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
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 property
SourceFile.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Name of the data type of the return value of the profiling function
TimerReadFcn.
Example: 'double'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
The resolution of the profiling timer in ticks per second.
Example: 5e8
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: double
A flag that denotes whether the profiling function counts up.
Example: true
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
The flag that denotes whether the profiling function stores the ID of the core on which it executes.
Example: true
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
The flag that denotes whether the profiling function prints the profiling data. The data can be printed only if generated code runs on hardware with a file system, for example Linux®. Otherwise, data is collected in a source code buffer.
Example: true
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
A flag that denotes whether the profiling function prints the profiling data instantly.
When set to true, the profile data prints to the standard output as soon as
it is collected. Otherwise, the profile data prints when the generated code terminates.
If 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.
Example: true
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
The name of the buffer in the generated code that holds the profiling data.
Example: 'myProfilingDataBuffer'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
The size of the buffer in generated code that holds the profiling data. Once the buffer is full, collection of profiling data stops.
Example: 600
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: double
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 source of the retrieval depends on the setting of the PrintData
property. If set to true, the function retrieves the profiler data from a
file. If false, the function retrieves the profiler data from the profiling
buffer in the generated code running on the hardware.
Example: 'myGetDataFcn'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Version History
Introduced in R2019b
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)