Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 416 Bytes

README.md

File metadata and controls

15 lines (15 loc) · 416 Bytes

PerformanceScope

Usage:

    PerformanceScope scope;
    using (var wrapper = PerformanceScope.Create("RootScope", request.Method.Method, request.RequestUri))
    {
      scope = wrapper.Scope;
      // execute code
      using (PerformanceScope.Create("ChildScope", request.Method.Method, request.RequestUri))
      {
          // execute code
      }
    }
    // scope contains all performance info