public PerfMonValueCollection(PerfMonManager m, long time = 0) { this.name = m.spec.GetLabel(); this.scale = m.spec.GetScale(); this.keepTimeMs = m.spec.GetKeepTimeMs(); this.graphId = m.spec.graphId; this.values = time <= 0 ? m.GetValues() : m.GetValues(time); }
public WebServer() : base(settings.webPort) { lock (managersLock) { managers = new PerfMonManager[settings.monitors.Count]; for (int i = 0; i < settings.monitors.Count; i++) { managers[i] = new PerfMonManager(settings.monitors[i]); managers[i].Start(); } } }