code: @Override
    public void trimContexts()
    {
      for (int index = 0; index < this.frames.length; ++index) {
        final Frame f = this.frames[index];
        f.trimRecursive();
      }
  
      this.frame_index = 0;
    }
docs: Trim any cached internal storage.
  
  This is primarily useful because implementations are expected to reuse a
  lot of data structures internally (because the graph of renderers and
  filters being profiled rarely changes).