The metering Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The metering Reference Manual

This is the metering Reference Manual, version 3.2, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 12:16:19 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

* The Metering System

The Metering System is a portable Common Lisp code profiling tool.
It gathers timing and consing statistics for specified functions 
while a program is running.

The Metering System is a combination of 
  -  the Monitor package written by Chris McConnell
  -  the Profile package written by Skef Wholey and Rob MacLachlan

The two systems were merged and extended by Mark Kantrowitz.

Metering System was refreshed and adapted to the 2016 realities by
Daniel Kochmański.

This code is in the public domain and is distributed without warranty
of any kind. 

Bug reports, comments, and suggestions should be sent to
daniel@turtleware.eu.


** Change Log
| Date      | Name | Ver | Notes                                                                                                                                                                                                          |
|-----------+------+-----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 26-JUN-90 | mk   |     | Merged functionality of Monitor and Profile packages.                                                                                                                                                          |
| 26-JUN-90 | mk   |     | Now handles both inclusive and exclusive statistics with respect to nested calls. (Allows it to subtract total monitoring overhead for each function, not just the time spent monitoring the function itself.) |
| 26-JUN-90 | mk   |     | The table is now saved so that one may manipulate the data (sorting it, etc.) even after the original source of the data has been cleared.                                                                     |
| 25-SEP-90 | mk   |     | Added get-cons functions for Lucid 3.0, MACL 1.3.2 required-arguments functions for Lucid 3.0, Franz Allegro CL, and MACL 1.3.2.                                                                               |
| 25-JAN-91 | mk   |     | Now uses fdefinition if available.                                                                                                                                                                             |
| 25-JAN-91 | mk   |     | Replaced (and :allegro (not :coral)) with :excl.  Much better solution for the fact that both call themselves :allegro.                                                                                        |
| 5-JUL-91  | mk   |     | Fixed warning to occur only when file is loaded uncompiled.                                                                                                                                                    |
| 5-JUL-91  | mk   |     | When many unmonitored functions, print out number instead of whole list.                                                                                                                                       |
| 24-MAR-92 | mk   |     | Updated for CLtL2 compatibility. space measuring doesn't work in MCL, but fixed so that timing statistics do.                                                                                                  |
| 26-MAR-92 | mk   |     | Updated for Lispworks. Replaced :ccl with (and :ccl (not :lispworks)).                                                                                                                                         |
| 27-MAR-92 | mk   |     | Added get-cons for Allegro-V4.0.                                                                                                                                                                               |
| 01-JAN-93 | mk   | 2.0 | Support for MCL 2.0, CMU CL 16d, Allegro V3.1/4.0/4.1, Lucid 4.0, ibcl                                                                                                                                         |
| 25-JAN-94 | mk   | 2.1 | Patches for CLISP from Bruno Haible.                                                                                                                                                                           |
| 26-FEB-16 | dk   | 3.0 | General clean-up - removal of the obsolete implementations support and constructs, testing on the active implementations etc.                                                                                  |
| 26-FEB-16 | dk   | 3.1 | Make warnings more ASDF-friendly                                                                                                                                                                               |
| 25-MAY-16 | dk   | 3.2 | Improve the documentation (document ignore-no-calls parameter)                                                                                                                                                 |


** To Do

   - Speed up monitoring code. Replace use of hash tables with an embedded
     offset in an array so that it will be faster than using gethash. 
     (i.e., svref/closure reference is usually faster than gethash).
   - Check robustness with respect to profiled functions.
   - Add option to record caller statistics -- this would list who
     called which functions and how often.
   - Switches to turn timing/CONSING statistics collection on/off.
   - Additional tests.

** Notes

   METERING has been tested (successfully) in the following lisps:

   | Name  |    Version | Testing date | Addional notes            |
   |-------+------------+--------------+---------------------------|
   | ABCL  |      1.3.3 | Feb 2016     |                           |
   | CCL   |       1.11 | Feb 2016     |                           |
   | CMUCL |        21a | Feb 2016     |                           |
   | CLISP |       2.49 | Feb 2016     |                           |
   | ECL   |     16.1.2 | Feb 2016     |                           |
   | GCL   | 2.6.13-pre | Feb 2016     |                           |
   | SBCL  |      1.3.2 | Feb 2016     |                           |
   | XCL   |  0.0.0.291 | Feb 2016     | unstable (random crashes) |


   METERING needs to be tested in the following lisps:
     - Allegro
     - LispWorks
     - mocl

   On XCL and GCL loading system with ASDF won't work.

   GCL has to first load the file, then compile it and load
   the compiled before:
   #+BEGIN_SRC lisp
     (load "metering.cl") ; GCL's issue
     (compile-file "metering.cl")
     (load *)
   #+END_SRC

   METERING may be load with ASDF or by compiling and
   loading file:
   #+BEGIN_SRC lisp
     #-asdf
     (load (compile-file "metering.cl"))

     ,#+asdf
     (load "metering.asd")
     (asdf:load-system 'metering)
   #+END_SRC


** Documentation

This system runs in any valid Common Lisp. Two small
implementation-dependent changes can be made to improve performance
and prettiness. In the section labelled "Implementation Dependent
Changes" below, you should tailor the functions REQUIRED-ARGUMENTS,
GET-CONS to your implementation for the best results. If GET-CONS is
not specified for your implementation, no consing information will be
reported. If you tailor these functions for a particular version of
Common Lisp, we'd appreciate receiving the code.



*** Usage Notes

SUGGESTED USAGE:

Start by monitoring big pieces of the program, then carefully choose
which functions close to, but not in, the inner loop are to be 
monitored next. Don't monitor functions that are called by other
monitored functions: you will only confuse yourself.

If the per-call time reported is less than 1/10th of a second, then
consider the clock resolution and profiling overhead before you believe
the time. It may be that you will need to run your program many times
in order to average out to a higher resolution.

The easiest way to use this package is to load it and execute either
#+BEGIN_SRC lisp
  (mon:with-monitoring (names*) ()
    your-forms*)
#+END_SRC
or                      
#+BEGIN_SRC lisp
  (mon:monitor-form your-form)
#+END_SRC

The former allows you to specify which functions will be monitored; the
latter monitors all functions in the current package. Both automatically
produce a table of statistics. Other variants can be constructed from
the monitoring primitives, which are described below, along with a
fuller description of these two macros.

For best results, compile this file before using.


CLOCK RESOLUTION:

Unless you are very lucky, the length of your machine's clock "tick" is
probably much longer than the time it takes a simple function to run.
For example, on the IBM RT, the clock resolution is 1/50th of a second.
This means that if a function is only called a few times, then only the
first couple of decimal places are really meaningful.


MONITORING OVERHEAD:

The added monitoring code takes time to run every time that the monitored
function is called, which can disrupt the attempt to collect timing 
information. In order to avoid serious inflation of the times for functions
that take little time to run, an estimate of the overhead due to monitoring
is subtracted from the times reported for each function. 

Although this correction works fairly well, it is not totally accurate,
resulting in times that become increasingly meaningless for functions
with short runtimes. For example, subtracting the estimated overhead
may result in negative times for some functions. This is only a concern
when the estimated profiling overhead is many times larger than 
reported total CPU time.

If you monitor functions that are called by monitored functions, in
:inclusive mode the monitoring overhead for the inner function is
subtracted from the CPU time for the outer function. [We do this by
counting for each function not only the number of calls to *this*
function, but also the number of monitored calls while it was running.]
In :exclusive mode this is not necessary, since we subtract the
monitoring time of inner functions, overhead & all.

Otherwise, the estimated monitoring overhead is not represented in the
reported total CPU time. The sum of total CPU time and the estimated
monitoring overhead should be close to the total CPU time for the
entire monitoring run (as determined by TIME).

A timing overhead factor is computed at load time. This will be incorrect
if the monitoring code is run in a different environment than this file
was loaded in. For example, saving a core image on a high performance
machine and running it on a low performance one will result in the use
of an erroneously small overhead factor.


If your times vary widely, possible causes are:
   - Garbage collection.  Try turning it off, then running your code.
     Be warned that monitoring code will probably cons when it does
     (get-internal-run-time).



*** Interface
#+BEGIN_EXAMPLE
WITH-MONITORING (&rest functions)                         [Macro]
                (&optional (nested :exclusive) 
                           (threshold 0.01)
                           (key :percent-time))
                &body body
The named functions will be set up for monitoring, the body forms executed,
a table of results printed, and the functions unmonitored. The nested,
threshold, and key arguments are passed to report-monitoring below.

MONITOR-FORM form                                         [Macro]
              &optional (nested :exclusive)
                        (threshold 0.01)
                        (key :percent-time)
All functions in the current package are set up for monitoring while
the form is executed, and automatically unmonitored after a table of
results has been printed. The nested, threshold, and key arguments 
are passed to report-monitoring below.

*MONITORED-FUNCTIONS*                                     [Variable]
This holds a list of all functions that are currently being monitored.

MONITOR &rest names                                       [Macro]
The named functions will be set up for monitoring by augmenting
their function definitions with code that gathers statistical information
about code performance. As with the TRACE macro, the function names are
not evaluated. Calls the function MON::MONITORING-ENCAPSULATE on each
function name. If no names are specified, returns a list of all 
monitored functions.

If name is not a symbol, it is evaled to return the appropriate
closure. This allows you to monitor closures stored anywhere like
in a variable, array or structure. Most other monitoring packages 
can't handle this. 

MONITOR-ALL &optional (package *package*)                 [Function]
Monitors all functions in the specified package, which defaults to
the current package.

UNMONITOR &rest names                                     [Macro]
Removes monitoring code from the named functions. If no names are
specified, all currently monitored functions are unmonitored.

RESET-MONITORING-INFO name                                [Function]
Resets the monitoring statistics for the specified function.

RESET-ALL-MONITORING                                      [Function]
Resets the monitoring statistics for all monitored functions.

MONITORED name                                            [Function]
Predicate to test whether a function is monitored.

REPORT-MONITORING &optional names                         [Function]
                            (nested :exclusive) 
                            (threshold 0.01)
                            (key :percent-time)
                            ignore-no-calls
Creates a table of monitoring information for the specified list
of names, and displays the table using display-monitoring-results.
If names is :all or nil, uses all currently monitored functions.
Takes the following arguments:
   - NESTED specifies whether nested calls of monitored functions
     are included in the times for monitored functions.
     o  If :inclusive, the per-function information is for the entire
        duration of the monitored function, including any calls to
        other monitored functions. If functions A and B are monitored,
        and A calls B, then the accumulated time and consing for A will
        include the time and consing of B.  Note: if a function calls
        itself recursively, the time spent in the inner call(s) may
        be counted several times.
     o  If :exclusive, the information excludes time attributed to
        calls to other monitored functions. This is the default.
   - THRESHOLD specifies that only functions which have been executed
     more than threshold percent of the time will be reported. Defaults
     to 1%. If a threshold of 0 is specified, all functions are listed,
     even those with 0 or negative running times (see note on overhead).
   - KEY specifies that the table be sorted by one of the following
     sort keys:
        :function       alphabetically by function name
        :percent-time   by percent of total execution time
        :percent-cons   by percent of total consing
        :calls          by number of times the function was called
        :time-per-call  by average execution time per function
        :cons-per-call  by average consing per function
        :time           same as :percent-time
        :cons           same as :percent-cons
   - IGNORE-NO-CALLS specifies whenever functions which were not
     called should be reported.

DISPLAY-MONITORING-RESULTS &optional (threshold 0.01)     [Function]
                                     (key :percent-time)
                                     (ignore-no-calls t)
Prints a table showing for each named function:
   - the total CPU time used in that function for all calls
   - the total number of bytes consed in that function for all calls
   - the total number of calls
   - the average amount of CPU time per call
   - the average amount of consing per call
   - the percent of total execution time spent executing that function
   - the percent of total consing spent consing in that function
Summary totals of the CPU time, consing, and calls columns are printed.
An estimate of the monitoring overhead is also printed. May be run
even after unmonitoring all the functions, to play with the data.

SAMPLE TABLE:

                                                 Cons
                   %     %                       Per      Total   Total
  Function         Time  Cons  Calls  Sec/Call   Call     Time    Cons
  ----------------------------------------------------------------------
  FIND-ROLE:       0.58  0.00    136  0.003521      0  0.478863       0
  GROUP-ROLE:      0.35  0.00    365  0.000802      0  0.292760       0
  GROUP-PROJECTOR: 0.05  0.00    102  0.000408      0  0.041648       0
  FEATURE-P:       0.02  0.00    570  0.000028      0  0.015680       0
  ----------------------------------------------------------------------
  TOTAL:                        1173                   0.828950       0
  Estimated total monitoring overhead: 0.88 seconds
#+END_EXAMPLE



Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 metering

Maintainer

Daniel Kochmański <daniel@turtleware.eu>

Author

Mark Kantrowitz <mkant@cs.cmu.edu>

Home Page

https://gitlab.common-lisp.net/dkochmanski/metering

License

Public Domain

Description

Portable Code Profiling Tool

Version

3.2

Source

metering.asd (file)

Component

metering.cl (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 metering.asd

Location

metering.asd

Systems

metering (system)


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 metering/metering.cl

Parent

metering (system)

Location

metering.cl

Packages

monitor

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 monitor

Source

metering.cl (file)

Nickname

mon

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *monitored-functions*

List of monitored symbols.

Package

monitor

Source

metering.cl (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Macros

Macro: monitor &rest NAMES

Monitor the named functions. As in TRACE, the names are not evaluated. If a function is already monitored, then unmonitor and remonitor (useful to notice function redefinition). If a name is undefined, give a warning and ignore it. See also unmonitor, report-monitoring, display-monitoring-results and reset-time.

Package

monitor

Source

metering.cl (file)

Macro: monitor-form FORM &optional NESTED THRESHOLD KEY

Monitor the execution of all functions in the current package during the execution of FORM. All functions that are executed above THRESHOLD % will be reported.

Package

monitor

Source

metering.cl (file)

Macro: unmonitor &rest NAMES

Remove the monitoring on the named functions.
Names defaults to the list of all currently monitored functions.

Package

monitor

Source

metering.cl (file)

Macro: with-monitoring (&rest FUNCTIONS) (&optional NESTED THRESHOLD KEY) &body BODY

Monitor the specified functions during the execution of the body.

Package

monitor

Source

metering.cl (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Functions

Function: display-monitoring-results &optional THRESHOLD KEY IGNORE-NO-CALLS
Package

monitor

Source

metering.cl (file)

Function: monitor-all &optional PACKAGE

Monitor all functions in the specified package.

Package

monitor

Source

metering.cl (file)

Function: monitored FUNCTION-PLACE

Test to see if a FUNCTION-PLACE is monitored.

Package

monitor

Source

metering.cl (file)

Function: monitoring-encapsulate NAME &optional WARN

Monitor the function Name. If already monitored, unmonitor first.

Package

monitor

Source

metering.cl (file)

Function: monitoring-unencapsulate NAME &optional WARN

Removes monitoring encapsulation code from around Name.

Package

monitor

Source

metering.cl (file)

Function: report-monitoring &optional NAMES NESTED THRESHOLD KEY IGNORE-NO-CALLS

Report the current monitoring state.
The percentage of the total time spent executing unmonitored code in each function (:exclusive mode), or total time (:inclusive mode) will be printed together with the number of calls and
the unmonitored time per call. Functions that have been executed below THRESHOLD % of the time will not be reported.

Package

monitor

Source

metering.cl (file)

Function: reset-all-monitoring ()

Reset monitoring info for all functions.

Package

monitor

Source

metering.cl (file)

Function: reset-monitoring-info NAME

Reset the monitoring info for the specified function.

Package

monitor

Source

metering.cl (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: overhead-iterations

Number of iterations over which the timing overhead is averaged.

Package

monitor

Source

metering.cl (file)

Constant: precomputed-encapsulations
Package

monitor

Source

metering.cl (file)

Constant: time-units-per-second
Package

monitor

Source

metering.cl (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Special variables

Special Variable: *estimated-total-overhead*
Package

monitor

Source

metering.cl (file)

Special Variable: *existing-encapsulations*
Package

monitor

Source

metering.cl (file)

Special Variable: *metering-version*

Current version number/date for Metering.

Package

monitor

Source

metering.cl (file)

Special Variable: *monitor*

Hash table in which METERING-FUNCTIONS structures are stored.

Package

monitor

Source

metering.cl (file)

Special Variable: *monitor-cons-overhead*

The amount of cons an empty monitored function costs.

Package

monitor

Source

metering.cl (file)

Special Variable: *monitor-results*

A table of monitoring statistics is stored here.

Package

monitor

Source

metering.cl (file)

Special Variable: *monitor-time-overhead*

The amount of time an empty monitored function costs.

Package

monitor

Source

metering.cl (file)

Special Variable: *no-calls*

A list of monitored functions which weren’t called.

Package

monitor

Source

metering.cl (file)

Special Variable: *total-calls*

Total number of calls monitored so far.

Package

monitor

Source

metering.cl (file)

Special Variable: *total-cons*

Total amount of consing monitored so far.

Package

monitor

Source

metering.cl (file)

Special Variable: *total-time*

Total amount of time monitored so far.

Package

monitor

Source

metering.cl (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Macros

Macro: get-cons ()
Package

monitor

Source

metering.cl (file)

Macro: get-time ()
Package

monitor

Source

metering.cl (file)

Macro: place-function FUNCTION-PLACE

Return the function found at FUNCTION-PLACE. Evals FUNCTION-PLACE if it isn’t a symbol, to allow monitoring of closures located in variables/arrays/structures.

Package

monitor

Source

metering.cl (file)

Setf Expander

(setf place-function) (setf expander)

Setf Expander: (setf place-function) FUNCTION-PLACE

Set the function in FUNCTION-PLACE to FUNCTION.

Package

monitor

Source

metering.cl (file)

Reader

place-function (macro)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Functions

Function: copy-metering-functions INSTANCE
Package

monitor

Source

metering.cl (file)

Function: copy-monitoring-info INSTANCE
Package

monitor

Source

metering.cl (file)

Function: find-encapsulation MIN-ARGS OPTIONALS-P
Package

monitor

Source

metering.cl (file)

Function: get-monitor-info NAME
Package

monitor

Source

metering.cl (file)

Setf Expander

(setf get-monitor-info) (setf expander)

Setf Expander: (setf get-monitor-info) NAME
Package

monitor

Source

metering.cl (file)

Reader

get-monitor-info (function)

Function: m-info-calls INSTANCE
Function: (setf m-info-calls) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-cons INSTANCE
Function: (setf m-info-cons) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-cons-per-call INSTANCE
Function: (setf m-info-cons-per-call) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-name INSTANCE
Function: (setf m-info-name) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-percent-cons INSTANCE
Function: (setf m-info-percent-cons) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-percent-time INSTANCE
Function: (setf m-info-percent-time) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-time INSTANCE
Function: (setf m-info-time) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: m-info-time-per-call INSTANCE
Function: (setf m-info-time-per-call) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: make-metering-functions &key (NAME NAME) (OLD-DEFINITION OLD-DEFINITION) (NEW-DEFINITION NEW-DEFINITION) (READ-METERING READ-METERING) (RESET-METERING RESET-METERING)
Package

monitor

Source

metering.cl (file)

Function: make-monitoring-encapsulation MIN-ARGS OPTIONALS-P
Package

monitor

Source

metering.cl (file)

Function: make-monitoring-info NAME CALLS TIME CONS PERCENT-TIME PERCENT-CONS TIME-PER-CALL CONS-PER-CALL
Package

monitor

Source

metering.cl (file)

Function: metering-functions-name INSTANCE
Function: (setf metering-functions-name) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: metering-functions-new-definition INSTANCE
Function: (setf metering-functions-new-definition) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: metering-functions-old-definition INSTANCE
Function: (setf metering-functions-old-definition) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: metering-functions-p OBJECT
Package

monitor

Source

metering.cl (file)

Function: metering-functions-read-metering INSTANCE
Function: (setf metering-functions-read-metering) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: metering-functions-reset-metering INSTANCE
Function: (setf metering-functions-reset-metering) VALUE INSTANCE
Package

monitor

Source

metering.cl (file)

Function: monitor-info-values NAME &optional NESTED WARN

Returns monitoring information values for the named function, adjusted for overhead.

Package

monitor

Source

metering.cl (file)

Function: monitoring-info-p OBJECT
Package

monitor

Source

metering.cl (file)

Function: place-fboundp FUNCTION-PLACE

Test to see if FUNCTION-PLACE is a function.

Package

monitor

Source

metering.cl (file)

Function: place-macrop FUNCTION-PLACE

Test to see if FUNCTION-PLACE is a macro.

Package

monitor

Source

metering.cl (file)

Function: required-arguments NAME
Package

monitor

Source

metering.cl (file)

Function: set-monitor-overhead ()

Determines the average overhead of monitoring by monitoring the execution of an empty function many times.

Package

monitor

Source

metering.cl (file)

Function: sort-results &optional KEY
Package

monitor

Source

metering.cl (file)

Function: stub-function X
Package

monitor

Source

metering.cl (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Structures

Structure: metering-functions ()
Package

monitor

Source

metering.cl (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: name
Readers

metering-functions-name (function)

Writers

(setf metering-functions-name) (function)

Slot: old-definition
Type

function

Initform

(error "missing required keyword argument :old-definition")

Readers

metering-functions-old-definition (function)

Writers

(setf metering-functions-old-definition) (function)

Slot: new-definition
Type

function

Initform

(error "missing required keyword argument :new-definition")

Readers

metering-functions-new-definition (function)

Writers

(setf metering-functions-new-definition) (function)

Slot: read-metering
Type

function

Initform

(error "missing required keyword argument :read-metering")

Readers

metering-functions-read-metering (function)

Writers

(setf metering-functions-read-metering) (function)

Slot: reset-metering
Type

function

Initform

(error "missing required keyword argument :reset-metering")

Readers

metering-functions-reset-metering (function)

Writers

(setf metering-functions-reset-metering) (function)

Structure: monitoring-info ()
Package

monitor

Source

metering.cl (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: name
Readers

m-info-name (function)

Writers

(setf m-info-name) (function)

Slot: calls
Readers

m-info-calls (function)

Writers

(setf m-info-calls) (function)

Slot: time
Readers

m-info-time (function)

Writers

(setf m-info-time) (function)

Slot: cons
Readers

m-info-cons (function)

Writers

(setf m-info-cons) (function)

Slot: percent-time
Readers

m-info-percent-time (function)

Writers

(setf m-info-percent-time) (function)

Slot: percent-cons
Readers

m-info-percent-cons (function)

Writers

(setf m-info-percent-cons) (function)

Slot: time-per-call
Readers

m-info-time-per-call (function)

Writers

(setf m-info-time-per-call) (function)

Slot: cons-per-call
Readers

m-info-cons-per-call (function)

Writers

(setf m-info-cons-per-call) (function)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.6 Types

Type: consing-type ()
Package

monitor

Source

metering.cl (file)

Type: time-type ()
Package

monitor

Source

metering.cl (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   M  
Index Entry  Section

F
File, Lisp, metering.asd: The metering<dot>asd file
File, Lisp, metering/metering.cl: The metering/metering<dot>cl file

L
Lisp File, metering.asd: The metering<dot>asd file
Lisp File, metering/metering.cl: The metering/metering<dot>cl file

M
metering.asd: The metering<dot>asd file
metering/metering.cl: The metering/metering<dot>cl file

Jump to:   F   L   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
C   D   F   G   M   P   R   S   U   W  
Index Entry  Section

(
(setf get-monitor-info): Internal functions
(setf m-info-calls): Internal functions
(setf m-info-cons): Internal functions
(setf m-info-cons-per-call): Internal functions
(setf m-info-name): Internal functions
(setf m-info-percent-cons): Internal functions
(setf m-info-percent-time): Internal functions
(setf m-info-time): Internal functions
(setf m-info-time-per-call): Internal functions
(setf metering-functions-name): Internal functions
(setf metering-functions-new-definition): Internal functions
(setf metering-functions-old-definition): Internal functions
(setf metering-functions-read-metering): Internal functions
(setf metering-functions-reset-metering): Internal functions
(setf place-function): Internal macros

C
copy-metering-functions: Internal functions
copy-monitoring-info: Internal functions

D
display-monitoring-results: Exported functions

F
find-encapsulation: Internal functions
Function, (setf m-info-calls): Internal functions
Function, (setf m-info-cons): Internal functions
Function, (setf m-info-cons-per-call): Internal functions
Function, (setf m-info-name): Internal functions
Function, (setf m-info-percent-cons): Internal functions
Function, (setf m-info-percent-time): Internal functions
Function, (setf m-info-time): Internal functions
Function, (setf m-info-time-per-call): Internal functions
Function, (setf metering-functions-name): Internal functions
Function, (setf metering-functions-new-definition): Internal functions
Function, (setf metering-functions-old-definition): Internal functions
Function, (setf metering-functions-read-metering): Internal functions
Function, (setf metering-functions-reset-metering): Internal functions
Function, copy-metering-functions: Internal functions
Function, copy-monitoring-info: Internal functions
Function, display-monitoring-results: Exported functions
Function, find-encapsulation: Internal functions
Function, get-monitor-info: Internal functions
Function, m-info-calls: Internal functions
Function, m-info-cons: Internal functions
Function, m-info-cons-per-call: Internal functions
Function, m-info-name: Internal functions
Function, m-info-percent-cons: Internal functions
Function, m-info-percent-time: Internal functions
Function, m-info-time: Internal functions
Function, m-info-time-per-call: Internal functions
Function, make-metering-functions: Internal functions
Function, make-monitoring-encapsulation: Internal functions
Function, make-monitoring-info: Internal functions
Function, metering-functions-name: Internal functions
Function, metering-functions-new-definition: Internal functions
Function, metering-functions-old-definition: Internal functions
Function, metering-functions-p: Internal functions
Function, metering-functions-read-metering: Internal functions
Function, metering-functions-reset-metering: Internal functions
Function, monitor-all: Exported functions
Function, monitor-info-values: Internal functions
Function, monitored: Exported functions
Function, monitoring-encapsulate: Exported functions
Function, monitoring-info-p: Internal functions
Function, monitoring-unencapsulate: Exported functions
Function, place-fboundp: Internal functions
Function, place-macrop: Internal functions
Function, report-monitoring: Exported functions
Function, required-arguments: Internal functions
Function, reset-all-monitoring: Exported functions
Function, reset-monitoring-info: Exported functions
Function, set-monitor-overhead: Internal functions
Function, sort-results: Internal functions
Function, stub-function: Internal functions

G
get-cons: Internal macros
get-monitor-info: Internal functions
get-time: Internal macros

M
m-info-calls: Internal functions
m-info-cons: Internal functions
m-info-cons-per-call: Internal functions
m-info-name: Internal functions
m-info-percent-cons: Internal functions
m-info-percent-time: Internal functions
m-info-time: Internal functions
m-info-time-per-call: Internal functions
Macro, get-cons: Internal macros
Macro, get-time: Internal macros
Macro, monitor: Exported macros
Macro, monitor-form: Exported macros
Macro, place-function: Internal macros
Macro, unmonitor: Exported macros
Macro, with-monitoring: Exported macros
make-metering-functions: Internal functions
make-monitoring-encapsulation: Internal functions
make-monitoring-info: Internal functions
metering-functions-name: Internal functions
metering-functions-new-definition: Internal functions
metering-functions-old-definition: Internal functions
metering-functions-p: Internal functions
metering-functions-read-metering: Internal functions
metering-functions-reset-metering: Internal functions
monitor: Exported macros
monitor-all: Exported functions
monitor-form: Exported macros
monitor-info-values: Internal functions
monitored: Exported functions
monitoring-encapsulate: Exported functions
monitoring-info-p: Internal functions
monitoring-unencapsulate: Exported functions

P
place-fboundp: Internal functions
place-function: Internal macros
place-macrop: Internal functions

R
report-monitoring: Exported functions
required-arguments: Internal functions
reset-all-monitoring: Exported functions
reset-monitoring-info: Exported functions

S
set-monitor-overhead: Internal functions
Setf Expander, (setf get-monitor-info): Internal functions
Setf Expander, (setf place-function): Internal macros
sort-results: Internal functions
stub-function: Internal functions

U
unmonitor: Exported macros

W
with-monitoring: Exported macros

Jump to:   (  
C   D   F   G   M   P   R   S   U   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
C   N   O   P   R   S   T  
Index Entry  Section

*
*estimated-total-overhead*: Internal special variables
*existing-encapsulations*: Internal special variables
*metering-version*: Internal special variables
*monitor*: Internal special variables
*monitor-cons-overhead*: Internal special variables
*monitor-results*: Internal special variables
*monitor-time-overhead*: Internal special variables
*monitored-functions*: Exported special variables
*no-calls*: Internal special variables
*total-calls*: Internal special variables
*total-cons*: Internal special variables
*total-time*: Internal special variables

C
calls: Internal structures
cons: Internal structures
cons-per-call: Internal structures
Constant, overhead-iterations: Internal constants
Constant, precomputed-encapsulations: Internal constants
Constant, time-units-per-second: Internal constants

N
name: Internal structures
name: Internal structures
new-definition: Internal structures

O
old-definition: Internal structures
overhead-iterations: Internal constants

P
percent-cons: Internal structures
percent-time: Internal structures
precomputed-encapsulations: Internal constants

R
read-metering: Internal structures
reset-metering: Internal structures

S
Slot, calls: Internal structures
Slot, cons: Internal structures
Slot, cons-per-call: Internal structures
Slot, name: Internal structures
Slot, name: Internal structures
Slot, new-definition: Internal structures
Slot, old-definition: Internal structures
Slot, percent-cons: Internal structures
Slot, percent-time: Internal structures
Slot, read-metering: Internal structures
Slot, reset-metering: Internal structures
Slot, time: Internal structures
Slot, time-per-call: Internal structures
Special Variable, *estimated-total-overhead*: Internal special variables
Special Variable, *existing-encapsulations*: Internal special variables
Special Variable, *metering-version*: Internal special variables
Special Variable, *monitor*: Internal special variables
Special Variable, *monitor-cons-overhead*: Internal special variables
Special Variable, *monitor-results*: Internal special variables
Special Variable, *monitor-time-overhead*: Internal special variables
Special Variable, *monitored-functions*: Exported special variables
Special Variable, *no-calls*: Internal special variables
Special Variable, *total-calls*: Internal special variables
Special Variable, *total-cons*: Internal special variables
Special Variable, *total-time*: Internal special variables

T
time: Internal structures
time-per-call: Internal structures
time-units-per-second: Internal constants

Jump to:   *  
C   N   O   P   R   S   T  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   M   P   S   T  
Index Entry  Section

C
consing-type: Internal types

M
metering: The metering system
metering-functions: Internal structures
monitor: The monitor package
monitoring-info: Internal structures

P
Package, monitor: The monitor package

S
Structure, metering-functions: Internal structures
Structure, monitoring-info: Internal structures
System, metering: The metering system

T
time-type: Internal types
Type, consing-type: Internal types
Type, time-type: Internal types

Jump to:   C   M   P   S   T