[Gambas-user] Profiling

Benoît Minisini g4mba5 at gmail.com
Sun Mar 31 20:18:35 CEST 2019


Le 31/03/2019 à 13:45, Hans Lehmann a écrit :
> Hello,
> 
> I have two questions about profiling. The profile mode can be switched 
> on and off in the IDE in the menu `Debugging> Activate Profiling`. After 
> the end of the program you can have a look at the detailed information. 
> With `Print System.profiles` you can obviously query whether the profile 
> mode is set or not.
> 
>   * But what is the point of using the boolean property System.Profile
>     with `System.Profile = True` or `System.Profile = False`?
>   * Can anyone give me an example where the two statements are used
>     sensibly?
> 
> Yours sincerely
> 
> Hans
> 
> 

If you want to profile just a specific part of your code.

Profiling everything may be slow, and there is a limit of the size of 
the profiling file.

So, in that case, you activate profiling globally, and then disable it 
explicitly around all the code you don't need to profile.

Regards,

-- 
Benoît Minisini


More information about the User mailing list