Gets the value of the metric with the given name in the current trace.
int getMetric(String name) { throw UnimplementedError('getMetric() is not implemented'); }