예제 #1
0
 /// <summary>
 ///  Starts profiling the function or profile of the given name.
 /// </summary>
 /// <param name="functionName">Name of the function or profile to time.</param>
 public void Start(string functionName)
 {
     if (_profileKeys.ContainsKey(functionName))
     {
         var node = (ProfilerNode)_profileKeys[functionName];
         node.Start();
     }
     else
     {
         var node = new ProfilerNode(functionName);
         _profileKeys.Add(functionName, node);
         node.Start();
     }
 }
예제 #2
0
 /// <summary>
 ///  Starts profiling the function or profile of the given name.
 /// </summary>
 /// <param name="functionName">Name of the function or profile to time.</param>
 public void Start(string functionName)
 {
     if (_profileKeys.ContainsKey(functionName))
     {
         var node = (ProfilerNode) _profileKeys[functionName];
         node.Start();
     }
     else
     {
         var node = new ProfilerNode(functionName);
         _profileKeys.Add(functionName, node);
         node.Start();
     }
 }