Skip to content

Fb Profile

Paul Squires edited this page Oct 14, 2026 · 3 revisions

Home › Intrinsic Defines › FB_PROFILE

FB_PROFILE

Intrinsic define set by the compiler

Syntax

__FB_PROFILE__

Description

Intrinsic define set to an integer to indicate the profiling method.
The different value are defined in the ./inc/fbc-int/profile.bi include file (inside Namespace: FB and Enum: PROFGEN_ID):

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#cmdline "-profgen fb"

#include Once "fbc-int/profile.bi"

Using FBC

Print "__FB_PROFILE__ = ";

Select Case __FB_PROFILE__

Case PROFGEN_ID_NONE

    Print "PROFGEN_ID_NONE"

Case PROFGEN_ID_GMON

    Print "PROFGEN_ID_GMON"

Case PROFGEN_ID_CALLS

    Print "PROFGEN_ID_CALLS"

Case PROFGEN_ID_CYCLES

    Print "PROFGEN_ID_CYCLES"

End Select

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally