function toMeasurementId(o) {
        return (o instanceof PerfMeasurement) ? o.id : o;
    }
@private
Convert a PerfMeasurement instance to it's id. Otherwise uses the string name for backwards compatibility.