|
|
|
|
|
ProfilerStart (Function) In french: AnalyseurDébut Starts "collecting data" for the performance profiler. Once this function is called, all the executed processes/events are saved in a WPF file. This file can be opened: - by the performance profiler.
- directly in the WINDEV, WEBDEV or WINDEV Mobile editor: in the "Home" pane, in the "General" group, pull down "Open" and select "Open".
Reminder: - To launch the performance profiler from within an application, press Shift + Windows + F10.
- The performance profiler can also be run between 2 breakpoints when debugging the application. For more details, see Breakpoints.
ProfilerStart("Test_StartProcedure.wpf")
StartProcedure()
ProfilerEnd()
Syntax
ProfilerStart([<Name of WPF file>])
<Name of WPF file>: Optional character string Location and name of the WPF file to create. The name of the WPF file can be built from the following elements: | | [%ExeDir%] | Directory of the executable, always filled with the "\" character. This directory is equivalent to the result of fExeDir. | [%ExeName%] | Executable name. | [%Date%] | Start date for collecting information (YYYYMMDD format). | [%Time%] | Start time for collecting information (HHMMSS format) | [%UserName%] | Name of the current user. | [%ComputerName%] | Computer name. | [%DataDir%] | Directory of the HFSQL data files specified by the user when installing the application. This directory is equivalent to the result of fDataDir. | [%DirUserData%] | Directory for the data of the current user of the current application. This directory is equivalent to the result of fDataDirUser. |
By default: - the extension of the WPF file is ".wpf".
- the WPF file name corresponds to: "[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]".
For example: "C:\Users\Doc\AppData\Roaming\Applications WINDEV\MyAppli\MyAppli_20161023_130812.wpf".
Warning: If you use dynamic string construction (option "Allow "[% %]" in strings" in the "Compilation" tab of the project description, a compilation error appears (unknown identifier).. In this case, each string must be preceded by '-%'. Example:
ProfilerStart("[%DirUserData%][%exeName%]_[%Date%]_[%Time%]")
becomes: ProfilerStart(-%"[%DirUserData%][%ExeName%]_[%Date%]_[%Time%]")
Remarks A WLanguage error occurs if ProfilerStart is used multiple times in the same process or event (without calling ProfilerEnd). Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|