Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NewState.cs
1using System.Xml;
3
5{
9 public class NewState : ProfilerEvent
10 {
11 private readonly string state;
12
20 : base(Ticks, Thread)
21 {
22 this.state = State;
23 }
24
28 public string State => this.state;
29
31 public override string EventType => "NewState";
32
34 public override void ExportXmlAttributes(XmlWriter Output, ProfilerEvent Previous, TimeUnit TimeUnit)
35 {
36 Output.WriteAttributeString("state", this.state);
37
38 base.ExportXmlAttributes(Output, Previous, TimeUnit);
39 }
40
42 public override string PlantUmlState => this.state;
43
45 public override void Accumulate(Accumulator Accumulator)
46 {
47 Accumulator.Sum(this);
48 }
49 }
50}
NewState(long Ticks, string State, ProfilerThread Thread)
Thread changes state.
Definition: NewState.cs:19
override void ExportXmlAttributes(XmlWriter Output, ProfilerEvent Previous, TimeUnit TimeUnit)
Exports event attributes to XML.
Definition: NewState.cs:34
string State
String representation of the new state.
Definition: NewState.cs:28
override void Accumulate(Accumulator Accumulator)
Accumulates the event.
Definition: NewState.cs:45
Abstract base class for profiler events.
ProfilerThread Thread
Profiler thread generating the event.
void Sum(NewState Event)
Sums time for a given state.
Definition: Accumulator.cs:103
Class that keeps track of events and timing for one thread.
TimeUnit
Options for presenting time in reports.
Definition: Profiler.cs:16