Files
rippled/classbeast_1_1insight_1_1Event.html
2021-04-01 23:02:15 +00:00

272 lines
16 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: beast::insight::Event Class 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacebeast.html">beast</a></li><li class="navelem"><a class="el" href="namespacebeast_1_1insight.html">insight</a></li><li class="navelem"><a class="el" href="classbeast_1_1insight_1_1Event.html">Event</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classbeast_1_1insight_1_1Event-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">beast::insight::Event Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>A metric for reporting event timing.
<a href="classbeast_1_1insight_1_1Event.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for beast::insight::Event:</div>
<div class="dyncontent">
<div class="center"><img src="classbeast_1_1insight_1_1Event__coll__graph.png" border="0" usemap="#beast_1_1insight_1_1Event_coll__map" alt="Collaboration graph"/></div>
<map name="beast_1_1insight_1_1Event_coll__map" id="beast_1_1insight_1_1Event_coll__map">
<area shape="rect" title="A metric for reporting event timing." alt="" coords="21,289,176,316"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="13,185,184,227"/>
<area shape="rect" href="classbeast_1_1insight_1_1EventImpl.html" title=" " alt="" coords="7,96,191,123"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="5,5,192,47"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3a053c8de8739b30eb7dae79a6f810c1"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#a3a053c8de8739b30eb7dae79a6f810c1">value_type</a> = <a class="el" href="classbeast_1_1insight_1_1EventImpl.html#abb840f537602809ff28d7fda1cea1152">EventImpl::value_type</a></td></tr>
<tr class="separator:a3a053c8de8739b30eb7dae79a6f810c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abd3ec6423ccafcc82ceffcd8e84c689d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#abd3ec6423ccafcc82ceffcd8e84c689d">Event</a> ()</td></tr>
<tr class="memdesc:abd3ec6423ccafcc82ceffcd8e84c689d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a null metric. <a href="classbeast_1_1insight_1_1Event.html#abd3ec6423ccafcc82ceffcd8e84c689d">More...</a><br /></td></tr>
<tr class="separator:abd3ec6423ccafcc82ceffcd8e84c689d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf309ac1b40d3090c9c3ccaf6cd93fc7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#aaf309ac1b40d3090c9c3ccaf6cd93fc7">Event</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a> &gt; const &amp;<a class="el" href="classbeast_1_1insight_1_1Event.html#a3a37cfe6776b7e238bf63ea7981e0ec0">impl</a>)</td></tr>
<tr class="memdesc:aaf309ac1b40d3090c9c3ccaf6cd93fc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the metric reference the specified implementation. <a href="classbeast_1_1insight_1_1Event.html#aaf309ac1b40d3090c9c3ccaf6cd93fc7">More...</a><br /></td></tr>
<tr class="separator:aaf309ac1b40d3090c9c3ccaf6cd93fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af25d64d42a95d26832e7354f07059245"><td class="memTemplParams" colspan="2">template&lt;class Rep , class Period &gt; </td></tr>
<tr class="memitem:af25d64d42a95d26832e7354f07059245"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#af25d64d42a95d26832e7354f07059245">notify</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</a>&lt; Rep, Period &gt; const &amp;value) const</td></tr>
<tr class="memdesc:af25d64d42a95d26832e7354f07059245"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push an event notification. <a href="classbeast_1_1insight_1_1Event.html#af25d64d42a95d26832e7354f07059245">More...</a><br /></td></tr>
<tr class="separator:af25d64d42a95d26832e7354f07059245"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a37cfe6776b7e238bf63ea7981e0ec0"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a> &gt; const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#a3a37cfe6776b7e238bf63ea7981e0ec0">impl</a> () const</td></tr>
<tr class="separator:a3a37cfe6776b7e238bf63ea7981e0ec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a64fcf2f4779e99bbe5753531cefb736b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Event.html#a64fcf2f4779e99bbe5753531cefb736b">m_impl</a></td></tr>
<tr class="separator:a64fcf2f4779e99bbe5753531cefb736b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A metric for reporting event timing. </p>
<p>An event is an operation that has an associated millisecond time, or other integral value. Because events happen at a specific moment, the metric only supports a push-style interface.</p>
<p>This is a lightweight reference wrapper which is cheap to copy and assign. When the last reference goes away, the metric is no longer collected. </p>
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00040">40</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a3a053c8de8739b30eb7dae79a6f810c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a053c8de8739b30eb7dae79a6f810c1">&#9670;&nbsp;</a></span>value_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classbeast_1_1insight_1_1Event.html#a3a053c8de8739b30eb7dae79a6f810c1">beast::insight::Event::value_type</a> = <a class="el" href="classbeast_1_1insight_1_1EventImpl.html#abb840f537602809ff28d7fda1cea1152">EventImpl::value_type</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00043">43</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abd3ec6423ccafcc82ceffcd8e84c689d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd3ec6423ccafcc82ceffcd8e84c689d">&#9670;&nbsp;</a></span>Event() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">beast::insight::Event::Event </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a null metric. </p>
<p>A null metric reports no information. </p>
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00048">48</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
<a id="aaf309ac1b40d3090c9c3ccaf6cd93fc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf309ac1b40d3090c9c3ccaf6cd93fc7">&#9670;&nbsp;</a></span>Event() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">beast::insight::Event::Event </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a> &gt; const &amp;&#160;</td>
<td class="paramname"><em>impl</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the metric reference the specified implementation. </p>
<p>Normally this won't be called directly. Instead, call the appropriate factory function in the <a class="el" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics.">Collector</a> interface. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics.">Collector</a>. </dd></dl>
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00057">57</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af25d64d42a95d26832e7354f07059245"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af25d64d42a95d26832e7354f07059245">&#9670;&nbsp;</a></span>notify()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Rep , class Period &gt; </div>
<table class="memname">
<tr>
<td class="memname">void beast::insight::Event::notify </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</a>&lt; Rep, Period &gt; const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Push an event notification. </p>
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00064">64</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
<a id="a3a37cfe6776b7e238bf63ea7981e0ec0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a37cfe6776b7e238bf63ea7981e0ec0">&#9670;&nbsp;</a></span>impl()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a>&gt; const&amp; beast::insight::Event::impl </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00072">72</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a64fcf2f4779e99bbe5753531cefb736b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64fcf2f4779e99bbe5753531cefb736b">&#9670;&nbsp;</a></span>m_impl</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="classbeast_1_1insight_1_1EventImpl.html">EventImpl</a>&gt; beast::insight::Event::m_impl</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Event_8h_source.html#l00078">78</a> of file <a class="el" href="Event_8h_source.html">Event.h</a>.</p>
</div>
</div>
</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.17
</small></address>
</body>
</html>