예제 #1
0
		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();
 }
예제 #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();
 }
예제 #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();
 }