title: Profiling a slow function under SBCL
body: <p>I'm in the need to profile a function that is "slow", i.e. it takes a <em>very</em> long time to terminate (if ever). It seems to me that it should be possible to profile this function nonetheless using the statistical profiler in SBCL, as it just takes samples in regular intervals.
  However, when I run</p>
  
  <pre><code>(sb-sprof:with-profiling (:max-samples 1000 :report :flat :loop nil)
     (the-function-in-question))
  </code></pre>
  
  <p>the profiler just prints</p>
  
  <blockquote>
    <p>Profiler sample vector full (537 traces / 10000 samples), doubling the size</p>
  </blockquote>
  
  <p>but never returns with the report.</p>
  
  <p>Is it even possible what I have in mind, and if so, how do I achieve it?</p>