/// <summary> /// Initializes a new instance of the <see cref="Ptr32RateCounter"/> class. /// </summary> /// <param name="device">The <see cref="Ptr32"/> device from which to take measurements.</param> /// <exception cref="ArgumentNullException"><paramref name="device"/> is <c>null</c>.</exception> public Ptr32RateCounter(Ptr32 device) { if (device == null) { throw new ArgumentNullException("device"); } m_device = device; m_parser = new Ptr32Parser(Analyze); }
/// <summary> /// Initializes an new instance of the <see cref="Ptr32ProcessingState"/> class. /// </summary> public Ptr32ProcessingState() { InitParseBuffers(1, 4, false); m_parser = new Ptr32Parser(Analyze); m_writingFile = CentralizedState.App.AppContext.LiveFileWrite; }