docs: def beforeSummaryReport(self, event):
          '''Output profiling results'''
          self.prof.disable()
          stats = pstats.Stats(self.prof, stream=event.stream).sort_stats(
              self.sort)
          event.stream.writeln(nose2.util.ln('Profiling results'))
          stats.print_stats()
          if self.pfile:
              stats.dump_stats(self.pfile)
          if self.cachegrind:
              visualize(self.prof.getstats())