Answer the question
In order to leave comments, you need to log in
How to profile an API with XHProf?
There is a bunch of client → server in php. Both parts are written in ZF2. It looks something like this:
I covered the front with the XHProf profiler, but I don’t understand how to cover the SOAP API Service with it,
the interaction with which occurs through something like www.service.tld/api/orders/wsdl.
How did you go about solving this problem.
Answer the question
In order to leave comments, you need to log in
Just like any php script.
You have two options.
1. if there is a single entry point to the api, then enable xhprof in it
2. Set auto-prepend-file/auto-append-file in php.ini, they will collect information for all running scripts on your system.
Then you just need to filter the metrics and analyze
PS Naturally, the server part needs to be profiled on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question