public CapturedMetadata RegisterMethod(MethodBase method) { lock (registrationLock) { var profiledMethod = new CapturedMetadata(method, ProfiledMethodCount); if (Metadata.Length <= ProfiledMethodCount) { Array.Resize(ref _metricsMetadata, Metadata.Length * 2); } Metadata[profiledMethod.Index] = profiledMethod; ProfiledMethodCount++; return(profiledMethod); } }
public MetricAccessor(CapturedMetadata metadata) { Metadata = metadata; }
public void ExitMethod(CapturedMetadata method, in ExcludedTime excludedData)
private void PublishMetric(CapturedMetadata method, in CapturedMetric metric)
public void EnterMethod(CapturedMetadata method) { _contextStack.Push(GetAccessor(method)); }