To profile a given request, just add ?perfprofile to the url. Instead of returning the actual results, an HTML presentation of the profiling results is returned. This is only enabled when debug mode is enabled.