Closed SilverFire closed 4 years ago
Thank you for the suggestion @SilverFire!
What do you think @romainneutron @iamluc ?
endProbe()
does not block until the profile is uploaded to blackfire.io, it just blocks until the probe has sent the data to the agent which is something fast.
But then calling $profile->getUrl()
(or any method on the $profile
object) will wait until the profile has been processed.
So I you don't need to know the result of the profile, you can just discard the $profile
object.
Aw, that's nice :) I've just checked the implementation and it really works as described.
Maybe, it makes sense to add Profile::getId()
method that will return the UUID without calling the initializeProfileCallback
?
Maybe, it makes sense to add
Profile::getId()
method that will return the UUID without calling theinitializeProfileCallback
?
Yep, it could be a good addition. Could you open a new issue for this? Then I propose to close this one.
Done
Say we have the following method:
Calling
endProbe()
sends data to the agent and always waits for the result, meaning that:blackfire.io
It would be nice to introduce a new API:
ProfilePromise
DTO is returned, carrying the assigned UUIDThe
ProfilePromise
API should be further discussed.