Deleted Added
full compact
kgmon.8 (1856) kgmon.8 (13107)
1.\" Copyright (c) 1983, 1991, 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.

--- 25 unchanged lines hidden (view full) ---

34.Dd June 6, 1993
35.Dt KGMON 8
36.Os BSD 4.2
37.Sh NAME
38.Nm kgmon
39.Nd generate a dump of the operating system's profile buffers
40.Sh SYNOPSIS
41.Nm kgmon
1.\" Copyright (c) 1983, 1991, 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.

--- 25 unchanged lines hidden (view full) ---

34.Dd June 6, 1993
35.Dt KGMON 8
36.Os BSD 4.2
37.Sh NAME
38.Nm kgmon
39.Nd generate a dump of the operating system's profile buffers
40.Sh SYNOPSIS
41.Nm kgmon
42.Op Fl bhpr
42.Op Fl Bbhpr
43.Op Fl M core
44.Op Fl N system
45.Sh DESCRIPTION
46.Nm Kgmon
47is a tool used when profiling the operating system.
48When no arguments are supplied,
49.Nm kgmon
50indicates the state of operating system profiling as running,

--- 6 unchanged lines hidden (view full) ---

57.Nm kgmon
58extracts profile data from the operating system and produces a
59.Pa gmon.out
60file suitable for later analysis by
61.Xr gprof 1 .
62.Pp
63The options are as follows:
64.Bl -tag -width Ds
43.Op Fl M core
44.Op Fl N system
45.Sh DESCRIPTION
46.Nm Kgmon
47is a tool used when profiling the operating system.
48When no arguments are supplied,
49.Nm kgmon
50indicates the state of operating system profiling as running,

--- 6 unchanged lines hidden (view full) ---

57.Nm kgmon
58extracts profile data from the operating system and produces a
59.Pa gmon.out
60file suitable for later analysis by
61.Xr gprof 1 .
62.Pp
63The options are as follows:
64.Bl -tag -width Ds
65.It Fl B
66Resume the collection of high resolution profile data.
65.It Fl b
67.It Fl b
66Resume the collection of profile data.
68Resume the collection of low resolution profile data.
67.It Fl h
68Stop the collection of profile data.
69.It Fl p
70Dump the contents of the profile buffers into a
71.Pa gmon.out
72file.
73.It Fl r
74Reset all the profile buffers.

--- 6 unchanged lines hidden (view full) ---

81Extract values associated with the name list from the specified core
82instead of the default ``/dev/kmem''.
83.It Fl N
84Extract the name list from the specified system instead of the
85default ``/kernel''.
86.El
87.Pp
88If neither
69.It Fl h
70Stop the collection of profile data.
71.It Fl p
72Dump the contents of the profile buffers into a
73.Pa gmon.out
74file.
75.It Fl r
76Reset all the profile buffers.

--- 6 unchanged lines hidden (view full) ---

83Extract values associated with the name list from the specified core
84instead of the default ``/dev/kmem''.
85.It Fl N
86Extract the name list from the specified system instead of the
87default ``/kernel''.
88.El
89.Pp
90If neither
91.Fl B
92nor
89.Fl b
90nor
91.Fl h
92is specified, the state of profiling collection remains unchanged.
93For example, if the
94.Fl p
95flag is specified and profile data is being collected,
96profiling will be momentarily suspended,
97the operating system profile buffers will be dumped,
98and profiling will be immediately resumed.
93.Fl b
94nor
95.Fl h
96is specified, the state of profiling collection remains unchanged.
97For example, if the
98.Fl p
99flag is specified and profile data is being collected,
100profiling will be momentarily suspended,
101the operating system profile buffers will be dumped,
102and profiling will be immediately resumed.
103.Pp
104The profile buffers should be reset when the resolution
105of the profile data is changed.
99.Sh FILES
100.Bl -tag -width /dev/kmemx -compact
101.It Pa /kernel
102the default system
103.It Pa /dev/kmem
104the default memory
105.El
106.Sh SEE ALSO

--- 16 unchanged lines hidden ---
106.Sh FILES
107.Bl -tag -width /dev/kmemx -compact
108.It Pa /kernel
109the default system
110.It Pa /dev/kmem
111the default memory
112.El
113.Sh SEE ALSO

--- 16 unchanged lines hidden ---