This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, georg.brandl, matthew.fremont, stromnov, therve
Date 2009-11-23.21:06:18
SpamBayes Score 1.2440907e-09
Marked as misclassified No
Message-id <d38f5330911231306w2bfca1efv76a5e18d1d99a79a@mail.gmail.com>
In-reply-to <1259008300.83.0.264867101939.issue7372@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
History
Date User Action Args
2009-11-23 21:06:20belopolskysetrecipients: + belopolsky, georg.brandl, therve, stromnov, matthew.fremont
2009-11-23 21:06:19belopolskylinkissue7372 messages
2009-11-23 21:06:18belopolskycreate