コード例 #1
0
 public void Dispose()
 {
     if (String.IsNullOrEmpty(parentName))
     {
         PerformanceMap.StopActivity(name);
     }
     else
     {
         PerformanceMap.StopSubActivity(name);
     }
 }
コード例 #2
0
 public PerformanceMeter(string name, string parentName)
 {
     if (String.IsNullOrEmpty(parentName))
     {
         PerformanceMap.StartActivity(name);
     }
     else
     {
         PerformanceMap.StartSubActivity(name, parentName);
     }
     this.name       = name;
     this.parentName = parentName;
 }