adding a profiling middleware to utils, useful to see what code is running to produce a view