ANN: Spyscope 0.1.3

131 views
Skip to first unread message

David Greenberg

unread,
Apr 10, 2013, 11:33:10 PM4/10/13
to clo...@googlegroups.com
Spyscope is a library that allows you to write very little code to get
threadsafe tracing of your Clojure.
 
Example: (println #spy/d (+ 1 2 3)) traces the execution of the form '(+ 1 2 3)

Spyscope also supports interactive querying of trace results with a repl toolkit (see README)

This version of spyscope has a few new features:
- You can add :marker metadata to your spies and have that be shown in the output
- You can add :time metadata to include a timestamp (using clj-time for formatting)
- The spied-on form is always printed unless explicitly repressed (i.e. ^{:form true} is default now)


To use, just include [spyscope "0.1.3"] in your project.clj (or follow the directions in the README to enable globally). You'll need to (require 'spyscope.core) somewhere if you don't add it as an injection.
 
See https://github.com/dgrnbrg/spyscope for details. Pull requests welcome!

Warren Lynn

unread,
Apr 12, 2013, 12:59:51 PM4/12/13
to clo...@googlegroups.com
I requested some of the features added in this release. Thanks a lot for the work.
Reply all
Reply to author
Forward
0 new messages