Help Center›FreeBASIC
__FB_OPTION_PROFILE__keyword
Intrinsic define set by the compiler
Syntax
__FB_OPTION_PROFILE__
Description
Intrinsic define set to an integer to indicate that the profiling code is generated:
__FB_OPTION_PROFILE__ is set to non-zero when profiling code is generated__FB_OPTION_PROFILE__ is set to zero when profiling code is not generated#Pragma Profile allows to control the generation of profiling code.This allows optionally including or excluding sections of source code to be profiled:
when
when
#pragma profile = true, then profiling code is generatedwhen
#pragma profile = false, then profiling code is not generatedRemarks
Version
- Since fbc 1.20.0
Differences from QB
- New to FreeBASIC
See also
Example
#cmdline "-profgen fb"
' profiling code generated
Print __FB_OPTION_PROFILE__
#pragma profile = False
' profiling code not generated
Print __FB_OPTION_PROFILE__
#pragma profile = True
' profiling code generated
Print __FB_OPTION_PROFILE__
Reference
- Documented in KeyPgDdfboptionprofile.html