Export profiler / profiling result

Hi there,

I'd like to export the result of a profiling run (in my case: php / PHPStorm). 
I'd like to see it, to make better before/after comparisons regarding code optimizations.

Any chance to get that?

6 comments
Comment actions Permalink

If only I understand your needs correctly, you can copy the cachegrind.opt file after every profiler run so it can be analyzed later.

0
Comment actions Permalink

Well, I mean a profiler run, started by the bookmarklet "Start profiler" and reloading that specific page.

Where do I find that file? Can't see it actually.

0
Comment actions Permalink

Hi,

According to https://xdebug.org/docs/all_settings#profiler_output_dir , it defaults to your "tmp" directory if you did not specify it in php.ini manually.

0
Comment actions Permalink

I'm using Zend Debugger, not XDebug.

0
Comment actions Permalink

Oh. Then there's no way to save the profiling snapshot within PhpStorm, and I can't say whether it's supported by Zend themselves.
If you find it crucial, please submit it as a feature request: https://youtrack.jetbrains.com/issues?q=project%3A+PhpStorm#newissue

0
Comment actions Permalink

Will do.

Thanks for you kind help (both)!

0

Please sign in to leave a comment.