adds performance data collection to query