Commits

Yannick Gingras  committed 68edcd9

fixed invocation with a script (-r)

  • Participants
  • Parent commits 1baafe4

Comments (0)

Files changed (1)

File pyprof2calltree.py

+#!/usr/bin/env python
 # Copyright (c) 2006-2008, David Allouche, Jp Calderone, Itamar Shtull-Trauring,
 # Johan Dahlin, Olivier Grisel <olivier.grisel@ensta.org>
 #
             except SystemExit:
                 pass
         finally:
-            kg = CalltreeConverter(prof.getstats())
+            kg = CalltreeConverter(pstats.Stats(prof))
 
     elif options.infile is not None:
         # use the profiling data from some input file