1.2.0 permalink Arrow_down_16x16

with-profile-data

clojure.contrib.profile

  • (with-profile-data & body)
Executes body with *profile-data* bound to an atom of a new map.
Returns the raw profile data as a map. Keys in the map are profile
names (keywords), and values are lists of elapsed time, in
nanoseconds.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/profile.clj:63 top

(defmacro with-profile-data
  "Executes body with *profile-data* bound to an atom of a new map.
  Returns the raw profile data as a map.  Keys in the map are profile
  names (keywords), and values are lists of elapsed time, in
  nanoseconds."
  [& body]
  `(binding [*profile-data* (atom {})]
     ~@body
     @*profile-data*))
Vars in clojure.contrib.profile/with-profile-data: defmacro apply atom binding concat deref hash-map list seq vector
Used in 0 other vars

Comments top

No comments for with-profile-data. Log in to add a comment.