API for trace - clojure-contrib v1.2 (stable)

by Stuart Sierra, Michel Salim

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at http://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.trace

Overview

This file defines simple "tracing" macros to help you see what your
code is doing.

Public Variables and Functions



*trace-depth*

var
This library, clojure-contrib, is deprecated. See here for more information.

  
Current stack depth of traced function calls.
Source


deftrace

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (deftrace name & definition)
Use in place of defn; traces each call/return of this fn, including
arguments.  Nested calls to deftrace'd functions will print a
tree-like structure.
Source


dotrace

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (dotrace fnames & exprs)
Given a sequence of function identifiers, evaluate the body
expressions in an environment in which the identifiers are bound to
the traced functions.  Does not work on inlined functions,
such as clojure.core/+
Source


trace

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (trace value)
       (trace name value)
Sends name (optional) and value to the tracer function, then
returns value.  May be wrapped around any expression without
affecting the result.
Source


trace-fn-call

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (trace-fn-call name f args)
Traces a single call to a function f with args.  'name' is the
symbol name of the function.
Source


trace-indent

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (trace-indent)
Returns an indentation string based on *trace-depth*
Source


tracer

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (tracer name value)
This function is called by trace.  Prints to standard output, but
may be rebound to do anything you like.  'name' is optional.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.