示例#1
0
        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);
            }
        }
示例#2
0
 public MetricAccessor(CapturedMetadata metadata)
 {
     Metadata = metadata;
 }
示例#3
0
 public void ExitMethod(CapturedMetadata method, in ExcludedTime excludedData)
示例#4
0
 private void PublishMetric(CapturedMetadata method, in CapturedMetric metric)
示例#5
0
 public void EnterMethod(CapturedMetadata method)
 {
     _contextStack.Push(GetAccessor(method));
 }