Beispiel #1
0
        /// <summary>
        /// Add markers to annotate the threads graph with our thread names.
        /// </summary>
        public static void AddThreadName()
        {
            if (string.IsNullOrEmpty(Thread.CurrentThread.Name))
            {
                return;
            }
            MarkerSeries flagSeries = Markers.DefaultWriter.CreateMarkerSeries(Thread.CurrentThread.Name);

            flagSeries.WriteFlag(Thread.CurrentThread.Name);
        }
Beispiel #2
0
 /// <summary>
 /// Add an event annotation to the threads view.
 /// </summary>
 public static void CreateEvent(string name)
 {
     _control.Invoke(new Action(() => _series.WriteFlag(name)));
 }