Skip to content

Compiler Option Profile

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

Home › Compiler Option: -profile

Compiler Option: -profile

Enable function profiling for gmon/gprof

Syntax

-profile

Description

The -profile compiler option enables 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.

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