Adding performance logging to stats_service