Add transaction profiling
Add transaction profiling that can be enabled in the configuration or per request with a query parameter if the user is an admin.
An extra key (_profile
or something) would be added to the outputted JSON response if the user is an admin with profiling information from the request (queries stats, time spent parsing the request, etc.). Ideally, the request information would also be stored in a database somewhere for later analysis.