bug 1058877 - Measure what the middleware does the most

@twobraids r?

This is disabled by default. I'm hoping to enable it temporarily (for a week or two) on stage once this lands.