moncontrol.3 (08398af3763c9941a3a7593c3cfb49f43f8c42c1) | moncontrol.3 (683728f17df00631d446d9dd5f49a622989203f2) |
---|---|
1.\" Copyright (c) 1980, 1991, 1992, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50option to 51.Xr cc 1 52automatically includes calls to collect statistics for the 53.Xr gprof 1 54call-graph execution profiler. 55In typical operation, profiling begins at program startup 56and ends when the program calls exit. 57When the program exits, the profiling data are written to the file | 1.\" Copyright (c) 1980, 1991, 1992, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50option to 51.Xr cc 1 52automatically includes calls to collect statistics for the 53.Xr gprof 1 54call-graph execution profiler. 55In typical operation, profiling begins at program startup 56and ends when the program calls exit. 57When the program exits, the profiling data are written to the file |
58.Em gmon.out , 59then | 58.Em progname.gmon , 59where progname is the name of the program, then |
60.Xr gprof 1 61can be used to examine the results. 62.Pp 63.Fn moncontrol 64selectively controls profiling within a program. 65When the program starts, profiling begins. 66To stop the collection of histogram ticks and call counts use 67.Fn moncontrol 0 ; --- 23 unchanged lines hidden (view full) --- 91.Xr cc 1 92will appear in the call graph part of the output; 93however, all functions in that address range will 94have their execution time measured. 95Profiling begins on return from 96.Fn monstartup . 97.Sh FILES 98.Bl -tag -width Pa -compact | 60.Xr gprof 1 61can be used to examine the results. 62.Pp 63.Fn moncontrol 64selectively controls profiling within a program. 65When the program starts, profiling begins. 66To stop the collection of histogram ticks and call counts use 67.Fn moncontrol 0 ; --- 23 unchanged lines hidden (view full) --- 91.Xr cc 1 92will appear in the call graph part of the output; 93however, all functions in that address range will 94have their execution time measured. 95Profiling begins on return from 96.Fn monstartup . 97.Sh FILES 98.Bl -tag -width Pa -compact |
99.It Pa gmon.out execution data file | 99.It Pa progname.gmon execution data file |
100.El 101.Sh SEE ALSO 102.Xr cc 1 , 103.Xr gprof 1 , 104.Xr profil 2 , 105.Xr clocks 7 | 100.El 101.Sh SEE ALSO 102.Xr cc 1 , 103.Xr gprof 1 , 104.Xr profil 2 , 105.Xr clocks 7 |