| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: kgmon.8,v 1.18 2005/06/20 13:25:26 peter Exp $ | | 1 | .\" $NetBSD: kgmon.8,v 1.19 2011/04/25 22:46:35 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1983, 1991, 1993 | | 3 | .\" Copyright (c) 1983, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| @@ -56,33 +56,35 @@ flag is specified, | | | @@ -56,33 +56,35 @@ flag is specified, |
56 | extracts profile data from the operating system and produces a | | 56 | extracts profile data from the operating system and produces a |
57 | .Pa gmon.out | | 57 | .Pa gmon.out |
58 | file suitable for later analysis by | | 58 | file suitable for later analysis by |
59 | .Xr gprof 1 . | | 59 | .Xr gprof 1 . |
60 | .Pp | | 60 | .Pp |
61 | The options are as follows: | | 61 | The options are as follows: |
62 | .Bl -tag -width Ds | | 62 | .Bl -tag -width Ds |
63 | .It Fl b | | 63 | .It Fl b |
64 | Resume the collection of profile data. | | 64 | Resume the collection of profile data. |
65 | .It Fl d | | 65 | .It Fl d |
66 | Enable debug output. | | 66 | Enable debug output. |
67 | .It Fl h | | 67 | .It Fl h |
68 | Stop the collection of profile data. | | 68 | Stop the collection of profile data. |
69 | .It Fl M | | 69 | .It Fl M Ar core |
70 | Extract values associated with the name list from the specified core | | 70 | Extract values associated with the name list from the specified |
| | | 71 | .Ar core |
71 | instead of the default | | 72 | instead of the default |
72 | .Pa /dev/kmem . | | 73 | .Pa /dev/kmem . |
73 | .It Fl N | | 74 | .It Fl N Ar system |
74 | Extract the name list from the specified system instead of the | | 75 | Extract the name list from the specified |
75 | default | | 76 | .Ar system |
| | | 77 | instead of the default |
76 | .Pa /netbsd . | | 78 | .Pa /netbsd . |
77 | .It Fl p | | 79 | .It Fl p |
78 | Dump the contents of the profile buffers into a | | 80 | Dump the contents of the profile buffers into a |
79 | .Pa gmon.out | | 81 | .Pa gmon.out |
80 | file. | | 82 | file. |
81 | .It Fl r | | 83 | .It Fl r |
82 | Reset all the profile buffers. | | 84 | Reset all the profile buffers. |
83 | If the | | 85 | If the |
84 | .Fl p | | 86 | .Fl p |
85 | flag is also specified, the | | 87 | flag is also specified, the |
86 | .Pa gmon.out | | 88 | .Pa gmon.out |
87 | file is generated before the buffers are reset. | | 89 | file is generated before the buffers are reset. |
88 | .El | | 90 | .El |