Liking cljdoc? Tell your friends :D

taoensso.tufte.impl

Private implementation details. profiled -> [<result> <derefable-and-mergeable-pstats>].

Profiling consists of:

  1. State init ; On thread
  2. Capture ; On thread
  3. State deref ; On thread
  4. ?Merging ; Off thread, on demand (deferred cost)
  5. ?Realization ; Off thread, on demand (deferred cost)

Basic implementation:

  • Capture [<id> <elapsed>]s into single mutable acc
    • May compact acc to id-times, {<id> (<time> ...)}
    • May compact id-times to id-stats, {<id> (<stats/stats> ...)}
  • Merge pours (read-only) acc0 + acc1 into id-times
    • May compact id-times to id-stats, {<id> (<stats/stats> ...)}
  • Realization:
    • Generates {<id> <stats/stats>} from id-times.
    • Merges with id-stats.
Private implementation details.
`profiled` -> [<result> <derefable-and-mergeable-pstats>].

Profiling consists of:
  1. State init   ; On  thread
  2. Capture      ; On  thread
  3. State deref  ; On  thread
  4. ?Merging     ; Off thread, on demand (deferred cost)
  5. ?Realization ; Off thread, on demand (deferred cost)

Basic implementation:
  - Capture [<id> <elapsed>]s into single mutable acc
    - May compact acc      to id-times, {<id> (<time>        ...)}
    - May compact id-times to id-stats, {<id> (<stats/stats> ...)}
  - Merge pours (read-only) acc0 + acc1 into id-times
    - May compact id-times to id-stats, {<id> (<stats/stats> ...)}
  - Realization:
      - Generates {<id> <stats/stats>} from id-times.
      - Merges with id-stats.
raw docstring

*pdata*clj/s

nnil iff dynamic profiling active

nnil iff dynamic profiling active
raw docstring

capture-time!clj/s

(capture-time! pd id ns-elapsed)

handle!clj/s

(handle! m)

handlers_clj/s

{<hid> <handler-fn>}

{<hid> <handler-fn>}
raw docstring

merge-pstatsclj/s

(merge-pstats ps0 ps1)
(merge-pstats nmax ps0 ps1)

Compacting merge

Compacting merge
raw docstring

new-pdata-dynamicclj/s

(new-pdata-dynamic nmax)

new-pdata-localclj/s

(new-pdata-local nmax)

pdata-local-getclj/s

(pdata-local-get)

pdata-local-popclj/s

(pdata-local-pop)

pdata-local-pushclj/s

(pdata-local-push v)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close