Every response to a signed-in website admin carries a Server-Timing header: start-up, navigation, unread mail, rendering, all database queries with their count, and the total. It shows in the browser developer tools under the request's Timings. Nobody else receives it. Any request taking a second or more is logged as request.slow with the same numbers. See "Page timing" in docs/LOGGING.md.
Page timing for website admins
Website admins get a Server-Timing header showing how long each part of a page took on the server and how many database queries it ran. Requests that take a second or more are written to the application log.