profile_routes function

Profile a set of routes