-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate ticks #6967
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
Deprecate ticks #6967
Conversation
if |
I don't understand what you mean here. Without |
UPDATE: |
Hi all, I technically agree with the deprecation of the ticks function but have to point interest for it. Our application currently uses ticks to trace memory and time consumption of parts of code in addition to a custom stream wrapper to apply the This is for sure not the subject of this RFC, but I would suggest adding a way to trigger an event on blocks in/out before removing tick's support. |
Memory tracing is easily possible with xdebug... |
Sure, but with a major impact on performance, we are using ticks to mitigate this drawback in production. |
A wordpress plugin uses ticks + stream wrappers for profiling, it has a decent # of installs, and is the only profiling option available at many shared hosts xdebug etc aren't reasonable alternatives since they aren't 100% available while ticks based approaches work everywhere. |
As these "profilers" use stream wrappers to rewrite the files to add the declare ticks, they can also rewrite the code to add calls to their function that is now called from within their registered tick function. Sure, it's not as easy, but it's possible. |
@matthieu88160 I don't know if that would help you, but did you have a look at blackfire.io?
@derickr Your statement is only true for the code you own, but not for 3rd party librarys ;) |
Thank @Naitsirch, we already have a Blackfire system installed for our development team and internal use but, it does not fit our needs for some client installation where we face restrictions to install this kind of third-party services. Out of our specific constraints, Blackfire is a good solution if you can install it. |
Based on the comments here, I've decided to withdraw this RFC. |
RFC: https://wiki.php.net/rfc/deprecate_ticks