Message95659
It would be fairly easy to change format before dumping stats to disk,
but unfortunately Profile does not encapsulate it's run-time data and
changing its format would be a mess.
Of course, one can hack around that by turning Profile.stats into a
computed property, but that's hardly an acceptable solution.
I think it is worthwhile fixing the on-disk format, but as a long-tem
solution one may consider adding common (possibly iterator-based) API
to both profile and cProfile that pstats can use instead of accessing
internal data structures.
Creating an ABC for a standard Python profiler, seems to be a
worthwhile project that in the future may simplify plugging in 3rd
party profilers, but I don't have expertise to undertake such a
project. That would require experience with multiple Python profilers
that I don't have.
On Mon, Nov 23, 2009 at 3:31 PM, Georg Brandl <report@bugs.python.org> wrote:
>
> Georg Brandl <georg@python.org> added the comment:
>
> Alexander, how hard would it be to change the profile output?
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue7372>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2009-11-23 21:06:20 | belopolsky | set | recipients:
+ belopolsky, georg.brandl, therve, stromnov, matthew.fremont |
2009-11-23 21:06:19 | belopolsky | link | issue7372 messages |
2009-11-23 21:06:18 | belopolsky | create | |
|