Re: Measuring response time Apache request
Adam Prime <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
On 11-05-24 11:30 AM, marco wrote: > Hi all, > I want to get the response time that Apache spends to serve a request > (from post-read-request phase to the response phase). > Any idea? > > Thanks I'm pretty sure there are messages buried in the archives (from torsten) showing how to do this with $r->push_handlers and Time::HiRes (or something along those lines). It's not really that complicated though, you basically just have a PostReadRequestHandler that uses push_handlers to push a handler into every phase that just logs the current time, or whatever it is you want to log. Adam