[Twisted-Python] Profiling problem: "bad marshal data"

When I pass twistd the --savestats option to save profile information as a pstats.Stats object instead of a textual report, the output file cannot be read: import pstats p = pstats.Stats(filename) gives: ValueError: bad marshal data (unknown type code) An output file generated with cProfile.run() can be read. Running twistd without --savestats generates a valid-looking textual report. This is Python 2.7.3, Twisted 12.0.0, on Debian. Peter.

On Mon, Sep 3, 2012 at 12:10 PM, Peter Westlake <peter.westlake@pobox.com>wrote:
This may be because the default profiler twistd uses is hotshot; try --profiler=cprofile or --profiler=profile. -- Itamar Turner-Trauring, Future Foundries LLC http://futurefoundries.com/ — Twisted consulting, training and support.

On Mon, Sep 3, 2012 at 12:10 PM, Peter Westlake <peter.westlake@pobox.com>wrote:
This may be because the default profiler twistd uses is hotshot; try --profiler=cprofile or --profiler=profile. -- Itamar Turner-Trauring, Future Foundries LLC http://futurefoundries.com/ — Twisted consulting, training and support.
participants (2)
-
Itamar Turner-Trauring
-
Peter Westlake