More statprof state refactorings
authorAndy Wingo <wingo@pobox.com>
Fri, 21 Feb 2014 20:43:39 +0000 (21:43 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 21 Feb 2014 20:43:39 +0000 (21:43 +0100)
commit45a7de8268b71b8ce41a2a360c830a825ce06949
treedfa4f266ae3a19c23726dfa1805e9306859bf12c
parent56bfce7c5d519301a92f75255c839415dc91fda6
More statprof state refactorings

* module/statprof.scm (existing-profiler-state): New helper, gets the
  profiler state or fails if there is no state.
  (sample-stack-procs, profile-signal-handler, count-call)
  (statprof-fold-call-data, statprof-proc-call-data)
  (statprof-call-data->stats, statprof-display)
  (statprof-display-anomolies, statprof-accumulated-time)
  (statprof-sample-count, statprof-fetch-stacks)
  (statprof-fetch-call-tree): Use the new helper.
  (statprof-active?): Don't create a state if there isn't one already.
module/statprof.scm