QHttpServer - how to determine request processing time?
Unsolved
General and Desktop
-
wrote 27 days ago last edited by
I want to log (and investigate) slow requests, but I can't find a way to do it. There's an afterRequestHandler, but not a before one, and QHttpServerRequest doesn't seem to have creation timestamp. Am I missing something?
-
Hi,
I don't think you missed anything.
One possible I can imagine is to create a wrapper function that you would use in your route that would measure the execution time of the real function that you would have passed to said method.
1/2