man-pages/man3/Profile.3o.html
2021-03-31 01:06:50 +01:00

184 lines
2.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Profile</TITLE>
</HEAD><BODY>
<H1>Profile</H1>
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Profile - Compiler performance recording
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Profile
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>Profile</B>
<BR>&nbsp;:&nbsp;
<B>sig end</B>
<P>
<P>
Compiler performance recording
<P>
Warning: this module is unstable and part of
<B>Compiler_libs</B>
.
<P>
<P>
<P>
<P>
<P>
<I>type file </I>
=
<B>string</B>
<P>
<P>
<P>
<P>
<P>
<I>val reset </I>
:
<B>unit -&gt; unit</B>
<P>
erase all recorded profile information
<P>
<P>
<P>
<I>val record_call </I>
:
<B>?accumulate:bool -&gt; string -&gt; (unit -&gt; 'a) -&gt; 'a</B>
<P>
<P>
<B>record_call pass f</B>
calls
<B>f</B>
and records its profile information.
<P>
<P>
<P>
<I>val record </I>
:
<B>?accumulate:bool -&gt; string -&gt; ('a -&gt; 'b) -&gt; 'a -&gt; 'b</B>
<P>
<P>
<B>record pass f arg</B>
records the profile information of
<B>f arg</B>
<P>
<P>
<P>
<I>type column </I>
=
<B>[ `Abs_top_heap | `Alloc | `Time | `Top_heap ]</B>
<P>
<P>
<P>
<P>
<P>
<I>val print </I>
:
<B>Format.formatter -&gt; column list -&gt; unit</B>
<P>
Prints the selected recorded profiling information to the formatter.
<P>
<P>
<P>
<P>
Command line flags
<P>
<P>
<I>val options_doc </I>
:
<B>string</B>
<P>
<P>
<P>
<P>
<I>val all_columns </I>
:
<B>column list</B>
<P>
<P>
<P>
<P>
<P>
A few pass names that are needed in several places, and shared to
avoid typos.
<P>
<P>
<I>val generate </I>
:
<B>string</B>
<P>
<P>
<P>
<P>
<I>val transl </I>
:
<B>string</B>
<P>
<P>
<P>
<P>
<I>val typing </I>
:
<B>string</B>
<P>
<P>
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">Module</A><DD>
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:52 GMT, March 31, 2021
</BODY>
</HTML>