pyramid_debugtoolbar icon indicating copy to clipboard operation
pyramid_debugtoolbar copied to clipboard

Feature request: provide file download of performance profile

Open arthurzenika opened this issue 9 years ago • 4 comments

When enabling profiling it would be nice to have a link where on could download the cProfile file to run it through another visualiser such as runsnake http://www.vrplumber.com/programming/runsnakerun/

I've hacked a piece of code that dumps this to a temp file ( self.profiler.dump_stats(filename)) and shows the temp filename on the page.

arthurzenika avatar Dec 07 '16 15:12 arthurzenika

This seems like it would be a nice feature.

mmerickel avatar Apr 06 '17 04:04 mmerickel

This is now easily doable thanks to https://github.com/Pylons/pyramid_debugtoolbar/pull/291

jvanasco avatar May 09 '17 20:05 jvanasco

requires debugtoolbar 4.0

pypi: pyramid_debugtoolbar_api_performance github source: https://github.com/jvanasco/pyramid_debugtoolbar_api_performance

jvanasco avatar May 10 '17 22:05 jvanasco

Just FYI if someone worked on https://github.com/Pylons/pyramid_debugtoolbar/issues/294 these extra addons @jvanasco is making could simply be buttons injected into the current panel via some javascript and they would work on an ajax call instead of being entire panels.

mmerickel avatar May 10 '17 23:05 mmerickel