XhprofBundle
XhprofBundle copied to clipboard
Invalid run id from command line
Hello,
First of all, thank you very much for that great bundle! :)
It works perfectly in dev mode from the debugging bar, and I also got the URL in headers when in prod mode.
When I run it in console, with the "option" or the "on" config values, I get a link, but always with a wrong id :(
In my app/config.yml file:
jns_xhprof:
location_web: http://localhost/xhprof
enabled: true
command: "option"
command_option_name: "profile"
An example command and result:
php app/console doctrine:schema:validate --env=dev --profile
XHProf starting run
---
[Mapping] OK - The mapping files are correct.
[Database] OK - The database schema is in sync with the mapping files.
---
XHProf run link http://localhost/xhprof?run=5322d47c49104&source=Symfony
And when I follow the link:
Run Report
Run #5322d47c49104: Invalid Run Id = 5322d47c49104
Did I miss something?
I ran into this issue, too. Default xhprof_html doesn't use a file suffix, but the xhprof_html that the bundle uses does (.xhprof) You should link your http://localhost/xhprof to the xhprof_html directory of the bundle (/vendor/facebook/xhprof/xhprof_html) or configure the xhprof_html for using the file suffix .xhprof.
That does not seems to solve my issue.
Either with my system xhprof_html, or the one in vendor; the runs list provided at http://localhost/xhprof is always empty when called from command line, but not from the web profiler bar; I'm still not ablo to get it working as expected.