icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD Others

MONCONTROL(3)             OpenBSD Programmer's Manual            MONCONTROL(3)

     moncontrol, monstartup - control execution profile

     moncontrol(int mode);

     monstartup(u_long *lowpc, u_long *highpc);

     An executable program compiled using the -pg option to cc(1) automatical-
     ly includes calls to collect statistics for the gprof(1) call-graph exe-
     cution profiler.  In typical operation, profiling begins at program
     startup and ends when the program calls exit.  When the program exits,
     the profiling data are written to the file gmon.out, then gprof(1) can be
     used to examine the results.

     moncontrol() selectively controls profiling within a program.  When the
     program starts, profiling begins.  To stop the collection of histogram
     ticks and call counts use moncontrol(0); to resume the collection of his-
     togram ticks and call counts use moncontrol(1).  This feature allows the
     cost of particular operations to be measured.  Note that an output file
     will be produced on program exit regardless of the state of moncontrol().

     Programs that are not loaded with -pg may selectively collect profiling
     statistics by calling monstartup() with the range of addresses to be pro-
     filed.  lowpc and highpc specify the address range that is to be sampled;
     the lowest address sampled is that of lowpc and the highest is just below
     highpc. Only functions in that range that have been compiled with the -pg
     option to cc(1) will appear in the call graph part of the output; howev-
     er, all functions in that address range will have their execution time
     measured.  Profiling begins on return from monstartup().

     gmon.out  execution data file

     cc(1),  gprof(1),  profil(2)

OpenBSD 2.6                      June 4, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
FreeBSD Sources for moncontrol(3) functions
OpenBSD sources for moncontrol(3)

[Overview Topics]

Up to: Debugging and Tracing (utilities, system and library calls which support debugging and tracing)

RocketLink!--> Man page versions: OpenBSD FreeBSD Others

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > moncontrol.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments