Debian Codegraph @

opcodes/cpumeter.xml

raw symbols SCIP
1 
2 <refentry id="cpumeter">
3 <indexterm id="IndexCpumeter"><primary>cpumeter</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Realtime Performance Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>cpumeter</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>cpumeter</refname>
11 <refpurpose>
12 Reports the usage of cpu either total or per core.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Reports the usage of cpu either total or per core to monitor how
20 close to max-out the processing is.
21 </para>
22 <para>
23 Please note that this opcode is currently only supported on
24 GNU/Linux <!-- and MacOS -->.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>ktot[,kcpu1, kcpu2,...]<command>cpumeter</command> ifreq</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>ifreq</emphasis> is the time in seconds that the meter
37 is refreshed. If this is too low then mainly figures of zero or one
38 hundred occur. A value of 0.1 seems acceptable.
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Performance</title>
44 <para>
45 <emphasis>cpumeter</emphasis> reads the total idle time in the
46 last <emphasis>ifreq</emphasis> seconds and reports it as a percentage usage. If
47 more than just <emphasis>ktot</emphasis> results are requested these report the same value for
48 individual cores.
49 </para>
50
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the cpumeter opcode. It uses the file <ulink url="examples/cpumeter.csd"><citetitle>cpumeter.csd</citetitle></ulink>.
57
58 <example>
59 <title>Example of the cpumeter opcode.</title>
60
61 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
62 <xi:include href="examples-xml/cpumeter.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
63 </example>
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>See also</title>
69 <para><link linkend="ControlRealtime"><citetitle>Real-time Performance Control</citetitle></link></para>
70 </refsect1>
71
72 <refsect1>
73 <title>Credits</title>
74 <para>
75 <simplelist>
76 <member>Author: &namejohn;</member>
77 <member>May 2011</member>
78 </simplelist>
79 </para>
80 <para>New in Csound version 5.14, for Linux/Unix and OSX only</para>
81 </refsect1>
82 </refentry>