89 lines
4.3 KiB
HTML
89 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<!-- This manual documents Guile version 3.0.10.
|
|
|
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
|
Inc.
|
|
|
|
Copyright (C) 2021 Maxime Devos
|
|
|
|
Copyright (C) 2024 Tomas Volf
|
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with no
|
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
|
copy of the license is included in the section entitled "GNU Free
|
|
Documentation License." -->
|
|
<title>Profile Commands (Guile Reference Manual)</title>
|
|
|
|
<meta name="description" content="Profile Commands (Guile Reference Manual)">
|
|
<meta name="keywords" content="Profile Commands (Guile Reference Manual)">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content=".texi2any-real">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link href="index.html" rel="start" title="Top">
|
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
|
<link href="REPL-Commands.html" rel="up" title="REPL Commands">
|
|
<link href="Debug-Commands.html" rel="next" title="Debug Commands">
|
|
<link href="Compile-Commands.html" rel="prev" title="Compile Commands">
|
|
<style type="text/css">
|
|
<!--
|
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
|
span:hover a.copiable-link {visibility: visible}
|
|
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
|
|
-->
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en">
|
|
<div class="subsubsection-level-extent" id="Profile-Commands">
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Debug-Commands.html" accesskey="n" rel="next">Debug Commands</a>, Previous: <a href="Compile-Commands.html" accesskey="p" rel="prev">Compile Commands</a>, Up: <a href="REPL-Commands.html" accesskey="u" rel="up">REPL Commands</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
<hr>
|
|
<h4 class="subsubsection" id="Profile-Commands-1"><span>4.4.4.5 Profile Commands<a class="copiable-link" href="#Profile-Commands-1"> ¶</a></span></h4>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-time-3"><span class="category-def">REPL Command: </span><span><strong class="def-name">time</strong> <var class="def-var-arguments">exp</var><a class="copiable-link" href="#index-time-3"> ¶</a></span></dt>
|
|
<dd><p>Time execution.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-profile"><span class="category-def">REPL Command: </span><span><strong class="def-name">profile</strong> <var class="def-var-arguments">exp [#:hz hz=100] [#:count-calls? count-calls?=#f] [#:display-style display-style=list]</var><a class="copiable-link" href="#index-profile"> ¶</a></span></dt>
|
|
<dd><p>Profile execution of an expression. This command compiled <var class="var">exp</var> and
|
|
then runs it within the statprof profiler, passing all keyword options
|
|
to the <code class="code">statprof</code> procedure. For more on statprof and on the the
|
|
options available to this command, See <a class="xref" href="Statprof.html">Statprof</a>.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-trace"><span class="category-def">REPL Command: </span><span><strong class="def-name">trace</strong> <var class="def-var-arguments">exp [#:width w] [#:max-indent i]</var><a class="copiable-link" href="#index-trace"> ¶</a></span></dt>
|
|
<dd><p>Trace execution.
|
|
</p>
|
|
<p>By default, the trace will limit its width to the width of your
|
|
terminal, or <var class="var">width</var> if specified. Nested procedure invocations
|
|
will be printed farther to the right, though if the width of the
|
|
indentation passes the <var class="var">max-indent</var>, the indentation is abbreviated.
|
|
</p></dd></dl>
|
|
|
|
<p>These REPL commands can also be called as regular functions in scheme
|
|
code on including the <code class="code">(ice-9 time)</code> module.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|