nanoev/tiny_httpd/Tiny_httpd_prometheus/GC_metrics/index.html
2025-05-05 14:16:16 +00:00

2 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GC_metrics (tiny_httpd.Tiny_httpd_prometheus.GC_metrics)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.0.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">Index</a> &#x00BB; <a href="../../index.html">tiny_httpd</a> &#x00BB; <a href="../index.html">Tiny_httpd_prometheus</a> &#x00BB; GC_metrics</nav><header class="odoc-preamble"><h1>Module <code><span>Tiny_httpd_prometheus.GC_metrics</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create : <span><a href="../Registry/index.html#type-t">Registry.t</a> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-update"><a href="#val-update" class="anchor"></a><code><span><span class="keyword">val</span> update : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_and_update_before_emit"><a href="#val-create_and_update_before_emit" class="anchor"></a><code><span><span class="keyword">val</span> create_and_update_before_emit : <span><a href="../Registry/index.html#type-t">Registry.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>create_and_update_before_emit reg</code> creates new GC metrics, adds them to the registry, and uses <a href="../Registry/index.html#val-on_will_emit"><code>Registry.on_will_emit</code></a> to <a href="#val-update"><code>update</code></a> the metrics every time the registry is polled.</p></div></div></div></body></html>