Click or drag to resize

Statistics class

Enables statistical analyses without the system for frequently passed counting points with too many log calls. Can be triggered via timer or number of counts.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationControlStatistics

Namespace: NetEti.ApplicationControl
Assembly: NetEti.Logging (in NetEti.Logging.dll) Version: 1.0.0+b865061c8026804ece26684b7dc3403284234a08
Syntax
public static class Statistics

The Statistics Type exposes the following members.

Properties
 NameDescription of the
Public PropertyStatic MemberIsTimerTriggered With True, the statistics output is time-controlled. LoggingTriggerCounter then returns the number of milliseconds until the next trigger event. If False, the statistics output is replaced by the total number of counting processes are controlled. LoggingTriggerCounter defined here is the number of counting processes after which the output takes place; Default: True.
Public PropertyStatic MemberLoggingTriggerCounter Number of milliseconds or number of counting operations until the next statistics issue; Default: 5000.
Public PropertyStatic MemberRegexFilter Only lines that fulfil this regular expression are logged.
Back to the top
Methods
 NameDescription of the
Public MethodStatic MemberInc Increments the counter with the transferred name by 1. The counter is regenerated during the first referencing.
Public MethodStatic MemberReset Sets the counter with the transferred name to 0. The counter is regenerated during the first referencing. If zero is passed as the counter name, all counters are is set to 0 and the internal trigger is reset.
Public MethodStatic MemberStop Must be called at the end of processing in order to save the last output statistics and stop the timer.
Back to the top
Remarks
28/09/2013 Erik Nagel: created 14.01.2018 Erik Nagel: Revised due to memory leaks and zombie tasks; output format optimised.
See also