-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 7 support #82
Comments
I just stumbled upon https://github.com/RustJason/xhprof/tree/php7 and will try to give it a spin. |
@langemeijer how is that working out for you? |
I have a big number of other extensions to compile before I can do any testing in a staging environment, because my application has a large number of dependencies. I can tell that it compiles correctly on my build system. (debian jessie with php 7.0.2) |
@langemeijer feel free to let me know if you have any issues. |
Hello. I am using windows. I want an xhprof profiling tool for php7. Please inform me about xhprof dll release for php7. I am not expert in xhprof but I am learning it. Please release xhprof as soon as possible for windows user. |
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); |
Hi, |
xhprof_enable(XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY); |
@udoless , @lav45 it doesn't matter if "|" or "+" const XHPROF_FLAGS_NO_BUILTINS = 1; so you can call xhprof_enable(7) .. or xhprof_enable(6), you do not need to use constants @udoless try to use https://github.com/longxinH/xhprof ... it's working for me (ubuntu 16.04, php7)
|
The fork from @RustJason seems to work for me on Arch with PHP7 |
I have the same problem, no display of CPU and memory (Debian Jessie with PHP 7.1) But version https://github.com/longxinH/xhprof seems working |
Its working.
#your script.php
result |
For those looking, here are the steps for PHP 7.1 (modified the snippets shared by @Slihotin )
Then modify the ini files
|
I came across this recently - https://tideways.io/profiler/xhprof-for-php7 |
Btw new release of xdebug mostly replacement for xhprof now |
@andypost in what way? I'm following xdebug 2.6 development, not sure what you mean though. |
@ihorvorotnov I see no reason in xhprof after 2.6 release of xdebug fixed memory usage in profiling |
@andypost What about comparing multiple runs? Also xdebug is much more resource intensive and shouldn’t be used on production. Both have a bit different purposes. |
Good point about live! OTOH maybe easy to make xdebug less involved in eating cpu or do that on demand ... cos here only 2 forks & tideways vs blackfire |
After checking code in new https://github.com/tideways/php-xhprof-extension/tree/v5.0-beta1 I think it looks much cleaner comparing to https://github.com/longxinH/xhprof/tree/master/extension |
With the introduction of PHP 7 the phpapi has changed a bit. As a result xhprof won't compile when phpized with the PHP 7.0 phpize.
Is someone planning to do PHP 7 support?
The text was updated successfully, but these errors were encountered: