public PerformanceCounterViewItem(string name, ListViewGroup group, PerformanceCounterItem counter)
      : base(new string[4])
		{
			this.counter = counter;
			this.SubItems[0].Text = name;
			this.Group = group;
			this.Update();
		}
 public PerformanceCounterViewItem(string name, ListViewGroup group, PerformanceCounterItem counter)
     : base(new string[4])
 {
     this.counter          = counter;
     this.SubItems[0].Text = name;
     this.Group            = group;
     this.Update();
 }
Example #3
0
 public PerformanceCounter()
 {
   this.Bar = new PerformanceCounterItem();
   this.Trade = new PerformanceCounterItem();
   this.Quote = new PerformanceCounterItem();
   this.MarketDepth = new PerformanceCounterItem();
   this.MarketDataTotal = new PerformanceCounterItem();
   this.Order = new PerformanceCounterItem();
   this.Report = new PerformanceCounterItem();
   this.Reject = new PerformanceCounterItem();
   this.ExecutionTotal = new PerformanceCounterItem();
   this.MemoryAllocation = new PerformanceCounterItem();
   this.CPUUsageTotal = new PerformanceCounterItem();
   this.CPUUsageCore = new PerformanceCounterItem();
   this.process = Process.GetCurrentProcess();
   this.UpdateMemoryAllocation();
 }
Example #4
0
 public PerformanceCounter()
 {
     this.Bar              = new PerformanceCounterItem();
     this.Trade            = new PerformanceCounterItem();
     this.Quote            = new PerformanceCounterItem();
     this.MarketDepth      = new PerformanceCounterItem();
     this.MarketDataTotal  = new PerformanceCounterItem();
     this.Order            = new PerformanceCounterItem();
     this.Report           = new PerformanceCounterItem();
     this.Reject           = new PerformanceCounterItem();
     this.ExecutionTotal   = new PerformanceCounterItem();
     this.MemoryAllocation = new PerformanceCounterItem();
     this.CPUUsageTotal    = new PerformanceCounterItem();
     this.CPUUsageCore     = new PerformanceCounterItem();
     this.process          = Process.GetCurrentProcess();
     this.UpdateMemoryAllocation();
 }