http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b50f0f8/content/api/latest/c++/index.hhp ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/index.hhp b/content/api/latest/c++/index.hhp index 9a5770b..0860836 100644 --- a/content/api/latest/c++/index.hhp +++ b/content/api/latest/c++/index.hhp @@ -80,6 +80,7 @@ http__proxy_8hpp_source.html libev_8hpp_source.html libevent_8hpp_source.html libevent__ssl__socket_8hpp_source.html +memory__profiler_8hpp_source.html openssl_8hpp_source.html poll__socket_8hpp_source.html process__reference_8hpp_source.html @@ -788,6 +789,7 @@ http__proxy_8hpp.html libev_8hpp.html libevent_8hpp.html libevent__ssl__socket_8hpp.html +memory__profiler_8hpp.html openssl_8hpp.html poll__socket_8hpp.html process__reference_8hpp.html @@ -2911,6 +2913,8 @@ classprocess_1_1Latch.html classprocess_1_1Latch-members.html classprocess_1_1Logging.html classprocess_1_1Logging-members.html +classprocess_1_1MemoryProfiler.html +classprocess_1_1MemoryProfiler-members.html structprocess_1_1Message.html structprocess_1_1Message-members.html classprocess_1_1MessageEncoder.html @@ -4111,6 +4115,7 @@ structprocess_1_1HttpEvent.png classprocess_1_1HttpProxy.png classprocess_1_1HttpResponseEncoder.png classprocess_1_1Logging.png +classprocess_1_1MemoryProfiler.png classprocess_1_1MessageEncoder.png structprocess_1_1MessageEvent.png classprocess_1_1MockFilter.png
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b50f0f8/content/api/latest/c++/memory__profiler_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/memory__profiler_8hpp.html b/content/api/latest/c++/memory__profiler_8hpp.html new file mode 100644 index 0000000..b50559c --- /dev/null +++ b/content/api/latest/c++/memory__profiler_8hpp.html @@ -0,0 +1,88 @@ +<!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.11"/> +<title>Apache Mesos: 3rdparty/libprocess/src/memory_profiler.hpp File Reference</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 id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related 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 List</span></a></li> + <li><a href="globals.html"><span>File 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_01cbbd8dcbf9de3825992568658f467e.html">src</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> </div> + <div class="headertitle"> +<div class="title">memory_profiler.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <functional></code><br /> +<code>#include <string></code><br /> +<code>#include <<a class="el" href="future_8hpp_source.html">process/future.hpp</a>></code><br /> +<code>#include <<a class="el" href="3rdparty_2libprocess_2include_2process_2http_8hpp_source.html">process/http.hpp</a>></code><br /> +<code>#include <<a class="el" href="libprocess_2include_2process_2process_8hpp_source.html">process/process.hpp</a>></code><br /> +<code>#include <<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>></code><br /> +<code>#include <<a class="el" href="option_8hpp_source.html">stout/option.hpp</a>></code><br /> +<code>#include <<a class="el" href="path_8hpp_source.html">stout/path.hpp</a>></code><br /> +<code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br /> +</div> +<p><a href="memory__profiler_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1MemoryProfiler.html">process::MemoryProfiler</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespaceprocess"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess.html">process</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.11 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b50f0f8/content/api/latest/c++/memory__profiler_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/memory__profiler_8hpp_source.html b/content/api/latest/c++/memory__profiler_8hpp_source.html new file mode 100644 index 0000000..0bd8506 --- /dev/null +++ b/content/api/latest/c++/memory__profiler_8hpp_source.html @@ -0,0 +1,88 @@ +<!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.11"/> +<title>Apache Mesos: 3rdparty/libprocess/src/memory_profiler.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 id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related 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 List</span></a></li> + <li><a href="globals.html"><span>File 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_01cbbd8dcbf9de3825992568658f467e.html">src</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">memory_profiler.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="memory__profiler_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> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <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> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <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> <span class="comme nt">//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <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> <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> <span class="comment">// limitations under the License</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __PROCESS_MEMORY_PROFILER_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __PROCESS_MEMORY_PROFILER_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div><div class="line"><a name="l00020">< /a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">process/http.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="option_8hpp.html">stout/option.hpp</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="prep rocessor">#include <<a class="code" href="path_8hpp.html">stout/path.hpp</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespaceprocess.html">process</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// This class provides support for memory profiling and introspection</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// using the capabilities of the jemalloc memory allocator.</span></div><div clas s="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">//</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// For user-facing documentation on how to use the facilities provided</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// by this class, see `docs/memory-profiling.md` in the mesos repository.</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">//</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// For more details about the implementation, see the comments</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// in `memory_profiler.cpp`.</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classproc ess_1_1MemoryProfiler.html"> 38</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1MemoryProfiler.html">MemoryProfiler</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">Process</a><MemoryProfiler></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classprocess_1_1MemoryProfiler.html#afe31588e5286cc4f9a617b19b184431a">MemoryProfiler</a>(<span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a>& authenticationRealm);</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classprocess_1_1MemoryProfiler.html#afe31a5aff47b57b2adedfb159a690b88"> 42</a></span>&# 160; <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1MemoryProfiler.html#afe31a5aff47b57b2adedfb159a690b88">~MemoryProfiler</a>() {}</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1MemoryProfiler.html#a51a6bf768a165ed59c410ce5c08b8838">initialize</a>();</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">static</span> <span class="keyword">const</spa n> std::string START_HELP();</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string STOP_HELP();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string DOWNLOAD_RAW_HELP();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string DOWNLOAD_TEXT_HELP();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string DOWNLOAD_GRAPH_HELP();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string STATISTICS_HELP();</div><div class="line"><a name ="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string STATE_HELP();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// HTTP endpoints.</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// Refer to the `HELP()` messages for detailed documentation.</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// Starts memory profiling.</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> start(</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>,</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// Stops memory profiling and dumps collected data.</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> stop(</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <spa n class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// Returns a raw heap profile.</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> downloadRawProfile(</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class=" line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// Generates and returns a symbolized heap profile.</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> downloadSymbolizedProfile(</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">const</span> <a cla ss="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// Generates and returns a call graph in svg format.</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> downloadGraphProfile(</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// Shows memory allocation statistics.</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> statistics(</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// Shows the configuration of the memory-profiler process.</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> state(</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& request,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// Internal functions, helper classes, and data members.</span></div><div class="line"><a name="l00095"></ a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// Deactivates data collection and attempts to dump the raw profile to disk.</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">void</span> stopAndGenerateRawProfile();</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// The authentication realm that the profiler's HTTP endpoints will be</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// installed into.</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classOption.html">Option<std::string></a> authenticationRealm;</div><div class="line"><a name ="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// Stores information about the current profiling run.</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// When the timer reaches zero, a dump of the collected</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="comment">// data will be attempted.</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">class </span>ProfilingRun</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  ProfilingRun(<a class="code" href= "classprocess_1_1MemoryProfiler.html">MemoryProfiler</a>*, time_t, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>&);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">void</span> extend(<a class="code" href="classprocess_1_1MemoryProfiler.html">MemoryProfiler</a>*, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>&);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  time_t <a class="code" href="namespaceid.html">id</a>;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="classprocess_1_1Timer.html">Timer</a> timer;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  };</div><div class="line"><a name="l00115"></a><span class= "lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classOption.html">Option<ProfilingRun></a> currentRun;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Represents a file on the filesystem that is generated as the result</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// of running some action.</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">class </span>DiskArtifact</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">static</span> <a class="code" href="classTry.html">Try<DiskArtifact></a> <a class="code" href="namespacecgroups.html#a2ecc89636706df947027a4c3c2100fbe">create</a>(</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">const</span> std::string& filename,</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  time_t timestamp,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  std::function<<a class="code" href="classTry.html">Try<Nothing></a>(<span class="keyword">const</span> std::string& outputPath)> generator);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">const</span> time_t getId() <span class="keyword">const</span>;< /div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  std::string getPath() <span class="keyword">const</span>;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="comment">// Generates an error response if the file doesn't exist, or a download</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// if it does.</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="structprocess_1_1http_1_1Response.html">http::Response</a> asHttp() <span class="keyword">const</span>;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno" > 136</span>  <span class="keyword">private</span>:</div><div > class="line"><a name="l00137"></a><span class="lineno"> 137</span>  > DiskArtifact(<span class="keyword">const</span> std::string& <a > class="code" href="namespacepath.html">path</a>, time_t <span > class="keywordtype">id</span>);</div><div class="line"><a > name="l00138"></a><span class="lineno"> 138</span> </div><div > class="line"><a name="l00139"></a><span class="lineno"> 139</span>  > std::string path;</div><div class="line"><a name="l00140"></a><span > class="lineno"> 140</span>  time_t id;</div><div class="line"><a > name="l00141"></a><span class="lineno"> 141</span>  };</div><div > class="line"><a name="l00142"></a><span class="lineno"> > 142</span> </div><div class="line"><a name="l00143"></a><span > class="lineno"> 143</span>  <span class="comment">// This profile is > obtained by telling jemalloc to dump its stats to a file.</span></div><div > class="line"><a name="l00144" ></a><span class="lineno"> 144</span>  <a class="code" >href="classTry.html">Try<DiskArtifact></a> rawProfile = <a class="code" >href="classError.html">Error</a>(<span class="stringliteral">"Not yet >generated"</span>);</div><div class="line"><a name="l00145"></a><span >class="lineno"> 145</span> </div><div class="line"><a >name="l00146"></a><span class="lineno"> 146</span>  <span >class="comment">// These profiles are obtained by running `jeprof` on the >`raw` profile.</span></div><div class="line"><a name="l00147"></a><span >class="lineno"> 147</span>  <a class="code" >href="classTry.html">Try<DiskArtifact></a> symbolizedProfile = <a >class="code" href="classError.html">Error</a>(<span >class="stringliteral">"Not yet generated"</span>);</div><div >class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a >class="code" href="classTry.html">Try<DiskArtifact></a> graphProfile = ><a class="code" href="classError.ht ml">Error</a>(<span class="stringliteral">"Not yet generated"</span>);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> };</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> } <span class="comment">// namespace process {</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor">#endif // __PROCESS_MEMORY_PROFILER_HPP__</span></div><div class="ttc" id="namespacepath_html"><div class="ttname"><a href="namespacepath.html">path</a></div><div class="ttdef"><b>Definition:</b> path.hpp:26</div></div> +<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div> +<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></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< Response > request(const Request &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="classTry_html"><div class="ttname"><a href="classTry.html">Try< DiskArtifact ></a></div></div> +<div class="ttc" id="namespaceid_html"><div class="ttname"><a href="namespaceid.html">id</a></div><div class="ttdef"><b>Definition:</b> uuid.hpp:33</div></div> +<div class="ttc" id="classprocess_1_1MemoryProfiler_html_afe31588e5286cc4f9a617b19b184431a"><div class="ttname"><a href="classprocess_1_1MemoryProfiler.html#afe31588e5286cc4f9a617b19b184431a">process::MemoryProfiler::MemoryProfiler</a></div><div class="ttdeci">MemoryProfiler(const Option< std::string > &authenticationRealm)</div></div> +<div class="ttc" id="classDuration_html"><div class="ttname"><a href="classDuration.html">Duration</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:32</div></div> +<div class="ttc" id="structprocess_1_1http_1_1Request_html"><div class="ttname"><a href="structprocess_1_1http_1_1Request.html">process::http::Request</a></div><div class="ttdef"><b>Definition:</b> http.hpp:518</div></div> +<div class="ttc" id="classprocess_1_1MemoryProfiler_html"><div class="ttname"><a href="classprocess_1_1MemoryProfiler.html">process::MemoryProfiler</a></div><div class="ttdef"><b>Definition:</b> memory_profiler.hpp:38</div></div> +<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> +<div class="ttc" id="path_8hpp_html"><div class="ttname"><a href="path_8hpp.html">path.hpp</a></div></div> +<div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></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="classprocess_1_1Timer_html"><div class="ttname"><a href="classprocess_1_1Timer.html">process::Timer</a></div><div class="ttdef"><b>Definition:</b> timer.hpp:30</div></div> +<div class="ttc" id="namespaceprocess_html"><div class="ttname"><a href="namespaceprocess.html">process</a></div><div class="ttdef"><b>Definition:</b> executor.hpp:47</div></div> +<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> +<div class="ttc" id="structprocess_1_1http_1_1Response_html"><div class="ttname"><a href="structprocess_1_1http_1_1Response.html">process::http::Response</a></div><div class="ttdef"><b>Definition:</b> http.hpp:595</div></div> +<div class="ttc" id="namespacecgroups_html_a2ecc89636706df947027a4c3c2100fbe"><div class="ttname"><a href="namespacecgroups.html#a2ecc89636706df947027a4c3c2100fbe">cgroups::create</a></div><div class="ttdeci">Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)</div></div> +<div class="ttc" id="classprocess_1_1MemoryProfiler_html_afe31a5aff47b57b2adedfb159a690b88"><div class="ttname"><a href="classprocess_1_1MemoryProfiler.html#afe31a5aff47b57b2adedfb159a690b88">process::MemoryProfiler::~MemoryProfiler</a></div><div class="ttdeci">virtual ~MemoryProfiler()</div><div class="ttdef"><b>Definition:</b> memory_profiler.hpp:42</div></div> +<div class="ttc" id="classprocess_1_1MemoryProfiler_html_a51a6bf768a165ed59c410ce5c08b8838"><div class="ttname"><a href="classprocess_1_1MemoryProfiler.html#a51a6bf768a165ed59c410ce5c08b8838">process::MemoryProfiler::initialize</a></div><div class="ttdeci">virtual void initialize()</div><div class="ttdoc">Invoked when a process gets spawned. </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:501</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="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future< http::Response ></a></div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.11 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b50f0f8/content/api/latest/c++/namespaceprocess.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/namespaceprocess.html b/content/api/latest/c++/namespaceprocess.html index b67c3b9..b857072 100644 --- a/content/api/latest/c++/namespaceprocess.html +++ b/content/api/latest/c++/namespaceprocess.html @@ -146,6 +146,8 @@ Classes</h2></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1Logging.html">Logging</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1MemoryProfiler.html">MemoryProfiler</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structprocess_1_1Message.html">Message</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1MessageEncoder.html">MessageEncoder</a></td></tr>
