blob: 5a1c48d42257ff33d78e57f7307c622d006bfafa [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Apache Mesos: 3rdparty/libprocess/include/process/system.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Apache Mesos
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">system.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="system_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// limitations under the License</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#ifndef __PROCESS_SYSTEM_HPP__</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __PROCESS_SYSTEM_HPP__</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="future_8hpp.html">process/future.hpp</a>&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="help_8hpp.html">process/help.hpp</a>&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">process/http.hpp</a>&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gauge_8hpp.html">process/metrics/gauge.hpp</a>&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html">process/metrics/metrics.hpp</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="os_8hpp.html">stout/os.hpp</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a> {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">// The System process provides HTTP endpoints for retrieving system metrics,</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment">// such as CPU load and memory usage. This is started by default during the</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment">// initialization of libprocess.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classprocess_1_1System.html"> 33</a></span>&#160;<span class="keyword">class </span><a class="code" href="classprocess_1_1System.html">System</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">Process</a>&lt;System&gt;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classprocess_1_1System.html#ace32519ce64ed719c6a56e5d3f8cce8d"> 36</a></span>&#160; <a class="code" href="classprocess_1_1System.html#ace32519ce64ed719c6a56e5d3f8cce8d">System</a>()</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; : <a class="code" href="classprocess_1_1ProcessBase.html">ProcessBase</a>(<span class="stringliteral">&quot;system&quot;</span>),</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; load_1min(</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/load_1min&quot;</span>,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_load_1min)),</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; load_5min(</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/load_5min&quot;</span>,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_load_5min)),</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; load_15min(</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/load_15min&quot;</span>,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_load_15min)),</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; cpus_total(</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/cpus_total&quot;</span>,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_cpus_total)),</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; mem_total_bytes(</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/mem_total_bytes&quot;</span>,</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_mem_total_bytes)),</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; mem_free_bytes(</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>().id + <span class="stringliteral">&quot;/mem_free_bytes&quot;</span>,</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<a class="code" href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">self</a>(), &amp;<a class="code" href="classprocess_1_1System.html">System</a>::_mem_free_bytes)) {}</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classprocess_1_1System.html#aa53ed4afab23cf31a06ca813b0bffb4f"> 57</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1System.html#aa53ed4afab23cf31a06ca813b0bffb4f">~System</a>() {}</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classprocess_1_1System.html#a5cfa4acb240377af06c74eca269df423"> 60</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1System.html#a5cfa4acb240377af06c74eca269df423">initialize</a>()</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="comment">// TODO(dhamon): Check return values.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(load_1min);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(load_5min);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(load_15min);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(cpus_total);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(mem_total_bytes);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">metrics::add</a>(mem_free_bytes);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classprocess_1_1ProcessBase.html#af0d1a6f8da798dfb2b6ea92550b8c6f5">route</a>(<span class="stringliteral">&quot;/stats.json&quot;</span>, statsHelp(), &amp;System::stats);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classprocess_1_1System.html#ac64aa6bb6638963782932ebfc140c952"> 73</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1System.html#ac64aa6bb6638963782932ebfc140c952">finalize</a>()</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; {</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(load_1min);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(load_5min);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(load_15min);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(cpus_total);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(mem_total_bytes);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">metrics::remove</a>(mem_free_bytes);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">static</span> std::string statsHelp()</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceprocess.html#a61f0548459d8e5a950dd91cfc2bd4aa7">HELP</a>(</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="namespaceprocess.html#a1455e1604a68bfe45564ec63c34a9653">TLDR</a>(</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="stringliteral">&quot;Shows local system metrics.&quot;</span>),</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="namespaceprocess.html#ac77710abb3ca0716be1856035c78cb89">DESCRIPTION</a>(</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="stringliteral">&quot;&gt; cpus_total Total number of available CPUs&quot;</span>,</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="stringliteral">&quot;&gt; load_1min Average system load for last&quot;</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="stringliteral">&quot; minute in uptime(1) style&quot;</span>,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="stringliteral">&quot;&gt; load_5min Average system load for last&quot;</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="stringliteral">&quot; 5 minutes in uptime(1) style&quot;</span>,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="stringliteral">&quot;&gt; load_15min Average system load for last&quot;</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="stringliteral">&quot; 15 minutes in uptime(1) style&quot;</span>,</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="stringliteral">&quot;&gt; memory_total_bytes Total system memory in bytes&quot;</span>,</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="stringliteral">&quot;&gt; memory_free_bytes Free system memory in bytes&quot;</span>));</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; }</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="comment">// Gauge handlers.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; Future&lt;double&gt; _load_1min()</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Load&gt;</a> load = <a class="code" href="namespaceos.html#ad932e3876b339c61b03abc575ad3943b">os::loadavg</a>();</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">if</span> (load.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">return</span> load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#ac65d8819bbf8201cfa6975d853061e93">one</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; }</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get loadavg: &quot;</span> + load.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; Future&lt;double&gt; _load_5min()</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; {</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Load&gt;</a> load = <a class="code" href="namespaceos.html#ad932e3876b339c61b03abc575ad3943b">os::loadavg</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">if</span> (load.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">return</span> load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#acff27912cf063f465aaf72fbda6ad3a7">five</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; }</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get loadavg: &quot;</span> + load.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; Future&lt;double&gt; _load_15min()</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; {</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Load&gt;</a> load = <a class="code" href="namespaceos.html#ad932e3876b339c61b03abc575ad3943b">os::loadavg</a>();</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordflow">if</span> (load.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#ac4a959c47204e8cd9e67930ac6b9bb63">fifteen</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get loadavg: &quot;</span> + load.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; }</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; Future&lt;double&gt; _cpus_total()</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classTry.html">Try&lt;long&gt;</a> <a class="code" href="namespaceos.html#afd08813156fea899c86b340d9767a8cd">cpus</a> = <a class="code" href="namespaceos.html#afd08813156fea899c86b340d9767a8cd">os::cpus</a>();</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">if</span> (cpus.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">return</span> cpus.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>();</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get cpus: &quot;</span> + cpus.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; Future&lt;double&gt; _mem_total_bytes()</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Memory&gt;</a> <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">memory</a> = <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a>();</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">if</span> (memory.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(memory.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Memory.html#a3670204f7fb13a96ca0e278f49b91282">total</a>.<a class="code" href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">bytes</a>());</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; }</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get memory: &quot;</span> + memory.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; }</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; Future&lt;double&gt; _mem_free_bytes()</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Memory&gt;</a> memory = <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a>();</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">if</span> (memory.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(memory.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Memory.html#ab447e8e30892e0d5f0e3a976e6d80cde">free</a>.<a class="code" href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">bytes</a>());</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; }</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordflow">return</span> Failure(<span class="stringliteral">&quot;Failed to get memory: &quot;</span> + memory.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; }</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="comment">// HTTP endpoints.</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; Future&lt;http::Response&gt; stats(<span class="keyword">const</span> http::Request&amp; <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>)</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; {</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="code" href="structJSON_1_1Object.html">JSON::Object</a> object;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Load&gt;</a> load = <a class="code" href="namespaceos.html#ad932e3876b339c61b03abc575ad3943b">os::loadavg</a>();</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">if</span> (load.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;avg_load_1min&quot;</span>] = load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#ac65d8819bbf8201cfa6975d853061e93">one</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;avg_load_5min&quot;</span>] = load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#acff27912cf063f465aaf72fbda6ad3a7">five</a>;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;avg_load_15min&quot;</span>] = load.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Load.html#ac4a959c47204e8cd9e67930ac6b9bb63">fifteen</a>;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; }</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="classTry.html">Try&lt;long&gt;</a> cpus = <a class="code" href="namespaceos.html#afd08813156fea899c86b340d9767a8cd">os::cpus</a>();</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">if</span> (cpus.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;cpus_total&quot;</span>] = cpus.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>();</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; }</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <a class="code" href="classTry.html">Try&lt;os::Memory&gt;</a> memory = <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a>();</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">if</span> (memory.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>()) {</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;mem_total_bytes&quot;</span>] = memory.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Memory.html#a3670204f7fb13a96ca0e278f49b91282">total</a>.<a class="code" href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">bytes</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordtype">object</span>.values[<span class="stringliteral">&quot;mem_free_bytes&quot;</span>] = memory.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>().<a class="code" href="structos_1_1Memory.html#ab447e8e30892e0d5f0e3a976e6d80cde">free</a>.<a class="code" href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">bytes</a>();</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordflow">return</span> http::OK(<span class="keywordtype">object</span>, request.url.query.get(<span class="stringliteral">&quot;jsonp&quot;</span>));</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; }</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; metrics::Gauge load_1min;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; metrics::Gauge load_5min;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; metrics::Gauge load_15min;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; metrics::Gauge cpus_total;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; metrics::Gauge mem_total_bytes;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; metrics::Gauge mem_free_bytes;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;};</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;} <span class="comment">// namespace process {</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="preprocessor">#endif // __PROCESS_SYSTEM_HPP__</span></div>
<div class="ttc" id="gauge_8hpp_html"><div class="ttname"><a href="gauge_8hpp.html">gauge.hpp</a></div></div>
<div class="ttc" id="classprocess_1_1System_html"><div class="ttname"><a href="classprocess_1_1System.html">process::System</a></div><div class="ttdef"><b>Definition:</b> system.hpp:33</div></div>
<div class="ttc" id="namespaceprocess_1_1http_html_ad8f400b5e54038df7e5662ec35da05fa"><div class="ttname"><a href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">process::http::request</a></div><div class="ttdeci">Future&lt; Response &gt; request(const Request &amp;request, bool streamedResponse=false)</div><div class="ttdoc">Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...</div></div>
<div class="ttc" id="namespaceprocess_1_1metrics_html_ad561ce447753dc2edad5d52a8776a141"><div class="ttname"><a href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">process::metrics::remove</a></div><div class="ttdeci">Future&lt; Nothing &gt; remove(const Metric &amp;metric)</div><div class="ttdef"><b>Definition:</b> metrics.hpp:108</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div>
<div class="ttc" id="3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html">metrics.hpp</a></div></div>
<div class="ttc" id="classprocess_1_1System_html_ac64aa6bb6638963782932ebfc140c952"><div class="ttname"><a href="classprocess_1_1System.html#ac64aa6bb6638963782932ebfc140c952">process::System::finalize</a></div><div class="ttdeci">virtual void finalize()</div><div class="ttdoc">Invoked when a process is terminated. </div><div class="ttdef"><b>Definition:</b> system.hpp:73</div></div>
<div class="ttc" id="os_8hpp_html"><div class="ttname"><a href="os_8hpp.html">os.hpp</a></div></div>
<div class="ttc" id="classprocess_1_1ProcessBase_html"><div class="ttname"><a href="classprocess_1_1ProcessBase.html">process::ProcessBase</a></div><div class="ttdef"><b>Definition:</b> process.hpp:69</div></div>
<div class="ttc" id="classprocess_1_1ProcessBase_html_af0d1a6f8da798dfb2b6ea92550b8c6f5"><div class="ttname"><a href="classprocess_1_1ProcessBase.html#af0d1a6f8da798dfb2b6ea92550b8c6f5">process::ProcessBase::route</a></div><div class="ttdeci">void route(const std::string &amp;name, const Option&lt; std::string &gt; &amp;help, const HttpRequestHandler &amp;handler, const RouteOptions &amp;options=RouteOptions())</div><div class="ttdoc">Sets up a handler for HTTP requests with the specified name. </div></div>
<div class="ttc" id="namespaceprocess_1_1metrics_html_a15af50f3f4dbcca2f7c619ccfbaa70b2"><div class="ttname"><a href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">process::metrics::add</a></div><div class="ttdeci">Future&lt; Nothing &gt; add(const T &amp;metric)</div><div class="ttdef"><b>Definition:</b> metrics.hpp:94</div></div>
<div class="ttc" id="structJSON_1_1Object_html"><div class="ttname"><a href="structJSON_1_1Object.html">JSON::Object</a></div><div class="ttdef"><b>Definition:</b> json.hpp:153</div></div>
<div class="ttc" id="namespaceos_html_ad932e3876b339c61b03abc575ad3943b"><div class="ttname"><a href="namespaceos.html#ad932e3876b339c61b03abc575ad3943b">os::loadavg</a></div><div class="ttdeci">Try&lt; Load &gt; loadavg()</div><div class="ttdef"><b>Definition:</b> os.hpp:282</div></div>
<div class="ttc" id="namespaceprocess_html_a1455e1604a68bfe45564ec63c34a9653"><div class="ttname"><a href="namespaceprocess.html#a1455e1604a68bfe45564ec63c34a9653">process::TLDR</a></div><div class="ttdeci">std::string TLDR(const std::string &amp;tldr)</div><div class="ttdef"><b>Definition:</b> help.hpp:69</div></div>
<div class="ttc" id="namespaceos_html_afd08813156fea899c86b340d9767a8cd"><div class="ttname"><a href="namespaceos.html#afd08813156fea899c86b340d9767a8cd">os::cpus</a></div><div class="ttdeci">Try&lt; long &gt; cpus()</div><div class="ttdef"><b>Definition:</b> os.hpp:267</div></div>
<div class="ttc" id="classTry_html_a6543d7d5db4f298bcd673bf3cd509acc"><div class="ttname"><a href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">Try::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> try.hpp:70</div></div>
<div class="ttc" id="classprocess_1_1System_html_aa53ed4afab23cf31a06ca813b0bffb4f"><div class="ttname"><a href="classprocess_1_1System.html#aa53ed4afab23cf31a06ca813b0bffb4f">process::System::~System</a></div><div class="ttdeci">virtual ~System()</div><div class="ttdef"><b>Definition:</b> system.hpp:57</div></div>
<div class="ttc" id="help_8hpp_html"><div class="ttname"><a href="help_8hpp.html">help.hpp</a></div></div>
<div class="ttc" id="classTry_html_aec4a11ddd3c036e889d90b7eb6258ba7"><div class="ttname"><a href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">Try::error</a></div><div class="ttdeci">static Try error(const E &amp;e)</div><div class="ttdef"><b>Definition:</b> try.hpp:42</div></div>
<div class="ttc" id="classprocess_1_1System_html_a5cfa4acb240377af06c74eca269df423"><div class="ttname"><a href="classprocess_1_1System.html#a5cfa4acb240377af06c74eca269df423">process::System::initialize</a></div><div class="ttdeci">virtual void initialize()</div><div class="ttdoc">Invoked when a process gets spawned. </div><div class="ttdef"><b>Definition:</b> system.hpp:60</div></div>
<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div>
<div class="ttc" id="namespaceprocess_html_a61f0548459d8e5a950dd91cfc2bd4aa7"><div class="ttname"><a href="namespaceprocess.html#a61f0548459d8e5a950dd91cfc2bd4aa7">process::HELP</a></div><div class="ttdeci">std::string HELP(const std::string &amp;tldr, const Option&lt; std::string &gt; &amp;description=None(), const Option&lt; std::string &gt; &amp;authentication=None(), const Option&lt; std::string &gt; &amp;authorization=None(), const Option&lt; std::string &gt; &amp;references=None())</div></div>
<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result&lt; Process &gt; process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div>
<div class="ttc" id="structos_1_1Memory_html_a3670204f7fb13a96ca0e278f49b91282"><div class="ttname"><a href="structos_1_1Memory.html#a3670204f7fb13a96ca0e278f49b91282">os::Memory::total</a></div><div class="ttdeci">Bytes total</div><div class="ttdef"><b>Definition:</b> os.hpp:36</div></div>
<div class="ttc" id="classprocess_1_1System_html_ace32519ce64ed719c6a56e5d3f8cce8d"><div class="ttname"><a href="classprocess_1_1System.html#ace32519ce64ed719c6a56e5d3f8cce8d">process::System::System</a></div><div class="ttdeci">System()</div><div class="ttdef"><b>Definition:</b> system.hpp:36</div></div>
<div class="ttc" id="classBytes_html_a1a2e9277ebe7d227a21f111898c49a8c"><div class="ttname"><a href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">Bytes::bytes</a></div><div class="ttdeci">uint64_t bytes() const </div><div class="ttdef"><b>Definition:</b> bytes.hpp:75</div></div>
<div class="ttc" id="classprocess_1_1Process_html_abef2d54388c5262af19b057b1a6eee8e"><div class="ttname"><a href="classprocess_1_1Process.html#abef2d54388c5262af19b057b1a6eee8e">process::Process&lt; System &gt;::self</a></div><div class="ttdeci">PID&lt; System &gt; self() const</div><div class="ttdoc">Returns the PID of the process. </div><div class="ttdef"><b>Definition:</b> process.hpp:499</div></div>
<div class="ttc" id="structos_1_1Load_html_ac4a959c47204e8cd9e67930ac6b9bb63"><div class="ttname"><a href="structos_1_1Load.html#ac4a959c47204e8cd9e67930ac6b9bb63">os::Load::fifteen</a></div><div class="ttdeci">double fifteen</div><div class="ttdef"><b>Definition:</b> os.hpp:28</div></div>
<div class="ttc" id="namespaceos_html_a23a7b8f4b4c145ad212381e89d4b6dc4"><div class="ttname"><a href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a></div><div class="ttdeci">Try&lt; Memory &gt; memory()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:77</div></div>
<div class="ttc" id="3rdparty_2libprocess_2include_2process_2http_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">http.hpp</a></div></div>
<div class="ttc" id="classprocess_1_1Process_html"><div class="ttname"><a href="classprocess_1_1Process.html">process::Process</a></div><div class="ttdef"><b>Definition:</b> process.hpp:490</div></div>
<div class="ttc" id="namespaceprocess_html_a8b27a2ef76eb133bf0ce7a5eea4fb77c"><div class="ttname"><a href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">process::defer</a></div><div class="ttdeci">Deferred&lt; void()&gt; defer(const PID&lt; T &gt; &amp;pid, void(T::*method)())</div><div class="ttdef"><b>Definition:</b> defer.hpp:35</div></div>
<div class="ttc" id="structos_1_1Memory_html_ab447e8e30892e0d5f0e3a976e6d80cde"><div class="ttname"><a href="structos_1_1Memory.html#ab447e8e30892e0d5f0e3a976e6d80cde">os::Memory::free</a></div><div class="ttdeci">Bytes free</div><div class="ttdef"><b>Definition:</b> os.hpp:37</div></div>
<div class="ttc" id="libprocess_2include_2process_2process_8hpp_html"><div class="ttname"><a href="libprocess_2include_2process_2process_8hpp.html">process.hpp</a></div></div>
<div class="ttc" id="classTry_html_a7be0768038e0628632492edf6cc1515a"><div class="ttname"><a href="classTry.html#a7be0768038e0628632492edf6cc1515a">Try::get</a></div><div class="ttdeci">const T &amp; get() const </div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div>
<div class="ttc" id="structos_1_1Load_html_acff27912cf063f465aaf72fbda6ad3a7"><div class="ttname"><a href="structos_1_1Load.html#acff27912cf063f465aaf72fbda6ad3a7">os::Load::five</a></div><div class="ttdeci">double five</div><div class="ttdef"><b>Definition:</b> os.hpp:27</div></div>
<div class="ttc" id="structos_1_1Load_html_ac65d8819bbf8201cfa6975d853061e93"><div class="ttname"><a href="structos_1_1Load.html#ac65d8819bbf8201cfa6975d853061e93">os::Load::one</a></div><div class="ttdeci">double one</div><div class="ttdef"><b>Definition:</b> os.hpp:26</div></div>
<div class="ttc" id="namespaceprocess_html_ac77710abb3ca0716be1856035c78cb89"><div class="ttname"><a href="namespaceprocess.html#ac77710abb3ca0716be1856035c78cb89">process::DESCRIPTION</a></div><div class="ttdeci">std::string DESCRIPTION(T &amp;&amp;...args)</div><div class="ttdef"><b>Definition:</b> help.hpp:76</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>