bigsql / plprofiler

Other
87 stars 23 forks source link

Fix flamegraph and report for Python 3.8+ #1

Closed arvidma closed 3 years ago

arvidma commented 3 years ago

cgi.escape has been deprecated since Python 3.2 and is gone in recent versions. Also turn SVG into a string object, without leading b' prefix, so that flamegraph doesn't fail to behave.

arvidma commented 3 years ago

Let me know if Python 2 compatibility is still important to you, and I'll make a new PR with cross-compatible versions of the changes.

arvidma commented 3 years ago

Doing PR towards https://github.com/pgsql-io/plprofiler/ instead.