profil.2 (84306) | profil.2 (108028) |
---|---|
1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Donn Seeley of BSDI. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)profil.2 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Donn Seeley of BSDI. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)profil.2 8.1 (Berkeley) 6/4/93 |
36.\" $FreeBSD: head/lib/libc/sys/profil.2 84306 2001-10-01 16:09:29Z ru $ | 36.\" $FreeBSD: head/lib/libc/sys/profil.2 108028 2002-12-18 09:22:32Z ru $ |
37.\" 38.Dd June 4, 1993 39.Dt PROFIL 2 40.Os 41.Sh NAME 42.Nm profil 43.Nd control process profiling 44.Sh LIBRARY 45.Lb libc 46.Sh SYNOPSIS 47.In unistd.h 48.Ft int 49.Fn profil "char *samples" "size_t size" "vm_offset_t offset" "int scale" 50.Sh DESCRIPTION 51The 52.Fn profil | 37.\" 38.Dd June 4, 1993 39.Dt PROFIL 2 40.Os 41.Sh NAME 42.Nm profil 43.Nd control process profiling 44.Sh LIBRARY 45.Lb libc 46.Sh SYNOPSIS 47.In unistd.h 48.Ft int 49.Fn profil "char *samples" "size_t size" "vm_offset_t offset" "int scale" 50.Sh DESCRIPTION 51The 52.Fn profil |
53function enables or disables | 53system call enables or disables |
54program counter profiling of the current process. 55If profiling is enabled, 56then at every profiling clock tick, 57the kernel updates an appropriate count in the 58.Fa samples 59buffer. 60The frequency of the profiling clock is recorded 61in the header in the profiling output file. --- 43 unchanged lines hidden (view full) --- 105.It Bq Er EFAULT 106The buffer 107.Fa samples 108contains an invalid address. 109.El 110.Sh SEE ALSO 111.Xr gprof 1 112.Sh HISTORY | 54program counter profiling of the current process. 55If profiling is enabled, 56then at every profiling clock tick, 57the kernel updates an appropriate count in the 58.Fa samples 59buffer. 60The frequency of the profiling clock is recorded 61in the header in the profiling output file. --- 43 unchanged lines hidden (view full) --- 105.It Bq Er EFAULT 106The buffer 107.Fa samples 108contains an invalid address. 109.El 110.Sh SEE ALSO 111.Xr gprof 1 112.Sh HISTORY |
113A | 113The |
114.Fn profil | 114.Fn profil |
115function call appeared in | 115function appeared in |
116.At v7 . 117.Sh BUGS 118This routine should be named 119.Fn profile . 120.Pp 121The 122.Fa samples 123argument should really be a vector of type 124.Fa "unsigned short" . 125.Pp 126The format of the gmon.out file is undocumented. | 116.At v7 . 117.Sh BUGS 118This routine should be named 119.Fn profile . 120.Pp 121The 122.Fa samples 123argument should really be a vector of type 124.Fa "unsigned short" . 125.Pp 126The format of the gmon.out file is undocumented. |