statprof-reset creates a new state
authorAndy Wingo <wingo@pobox.com>
Fri, 21 Feb 2014 20:56:01 +0000 (21:56 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 21 Feb 2014 20:56:01 +0000 (21:56 +0100)
commit4eb1fb9b8a926710a1040e483104dd8abb6f18e4
tree70d0823d9f5e6e3f307109092fe56702cf726289
parent45a7de8268b71b8ce41a2a360c830a825ce06949
statprof-reset creates a new state

* module/statprof.scm (fresh-profiler-state): New helper.
  (ensure-profiler-state): Use it.
  (accumulate-time): No need to add 0.0 here.
  (statprof-reset): Create a new state instead of mutating the existing
  one.
module/statprof.scm