moved metrics aggregation to ::Analyze