Class RepeatedValueTracker
GlobalSubscribes to a provided list of types and analyzes notifications for these,
tracking repeated notifications of the same Controller member with the same value as the last notification
Use RepeatCounts to get current count of repetitions of each Type.Member
Only tracks Server-Client notifications, not Server sided communications (ControllerID == 0)
Inheritance
System.Object
RepeatedValueTracker
Namespace: Eco.Core.DebugStatistic
Assembly: Eco.Core.dll
Syntax
public class RepeatedValueTracker : Object
Constructors
RepeatedValueTracker(IEnumerable<Type>)
Declaration
public RepeatedValueTracker(IEnumerable<Type> types)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Type> | types | Types to analyze for repeated notifications |
Properties
RepeatCounts
Sequence of pairs Type.Member and Number of repetitions
Declaration
public IEnumerable<KeyValuePair<string, int>> RepeatCounts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Int32>> |
Methods
SubscribeNotifications()
Declaration
public void SubscribeNotifications()
UnsubscribeNotifications()
Declaration
public void UnsubscribeNotifications()