A New Approach for Estimating Per-Transaction-Type Resource Consumption