If the "external calls" were executions of an external application (e.g. via exec()
) you could (in theory) get some stats by either wrapping the application in time
or using the ac
process accounting stuff.
However, you seem to want to find out the resources used by a service to process individual request. There's no way to get that information, other than by getting the service itself to measure and report it.
The only thing you can capture from the outside (i.e. from the client) is the elapsed time for each request.