White space fix only. Translators can ignore.
Sponsored by: iXsystems
This commit is contained in:
parent
928e8d3ee1
commit
3d7f6d6bbe
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44577
1 changed files with 13 additions and 12 deletions
|
@ -243,9 +243,9 @@ options DEBUG=-g</programlisting>
|
|||
<filename>hotkernel</filename> and
|
||||
<filename>procsystime</filename> scripts.</para>
|
||||
|
||||
<para>The <filename>hotkernel</filename> script is designed to identify
|
||||
which function is using the most kernel time. It
|
||||
will produce output similar to the following:</para>
|
||||
<para>The <filename>hotkernel</filename> script is designed to
|
||||
identify which function is using the most kernel time. It will
|
||||
produce output similar to the following:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>cd /usr/share/dtrace/toolkit</userinput>
|
||||
&prompt.root; <userinput>./hotkernel</userinput>
|
||||
|
@ -314,13 +314,14 @@ kernel 874 0.4%
|
|||
seriously obvious. It is 5AM btw. -->
|
||||
|
||||
<para>The <filename>procsystime</filename> script captures and
|
||||
prints the system call time usage for a given process <acronym>ID</acronym>
|
||||
(<acronym>PID</acronym>) or process name. In the following
|
||||
example, a new instance of <filename>/bin/csh</filename> was
|
||||
spawned. Then, <filename>procsystime</filename> was executed and
|
||||
remained waiting while a few commands were typed on the other
|
||||
incarnation of <command>csh</command>. These are the results of
|
||||
this test:</para>
|
||||
prints the system call time usage for a given process
|
||||
<acronym>ID</acronym> (<acronym>PID</acronym>) or process name.
|
||||
In the following example, a new instance of
|
||||
<filename>/bin/csh</filename> was spawned. Then,
|
||||
<filename>procsystime</filename> was executed and remained
|
||||
waiting while a few commands were typed on the other incarnation
|
||||
of <command>csh</command>. These are the results of this
|
||||
test:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>./procsystime -n csh</userinput>
|
||||
Tracing... Hit Ctrl-C to end...
|
||||
|
@ -348,8 +349,8 @@ Elapsed Times for processes csh,
|
|||
sigsuspend 6985124
|
||||
read 3988049784</screen>
|
||||
|
||||
<para>As shown, the <function>read()</function> system call
|
||||
used the most time in nanoseconds while the
|
||||
<para>As shown, the <function>read()</function> system call used
|
||||
the most time in nanoseconds while the
|
||||
<function>getpid()</function> system call used the least amount
|
||||
of time.</para>
|
||||
</sect1>
|
||||
|
|
Loading…
Reference in a new issue