Skip to content

Compiler Option Profgen

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

Home › Compiler Option: -profgen

Compiler Option: -profgen

Enable function profiling by selecting a specific profiler

Syntax

-profgen < profiler >

Description

The -profgen compiler option enables function profiling by selecting a specific profiler among different profiler code generation backends.

-profgen fb

Enable function call profiling using fb's profiler. After running an executable compiled with this option, a <filename[.exe]>.prf file containing the profiling report will be created in the program directory.

-profgen cycles

Enable cycle count profiling on some targets using fb's profiler. After running an executable compiled with this option, it can generate a basic report of cycle counts.
(currently a work in progress on -gen gas64 only)

-profgen gmon

Enable profiling code generation for gmon/gprof. After running an executable compiled with this option, a gmon.out file will be created in the program directory, allowing use of GPROF for analysis of the program's execution.

Version

See also


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