-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathGenericEvent.cs
More file actions
63 lines (61 loc) · 2.49 KB
/
GenericEvent.cs
File metadata and controls
63 lines (61 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.Diagnostics.Tracing;
using Microsoft.Diagnostics.Tracing.Etlx;
using Microsoft.Performance.SDK;
using System;
using Utilities;
namespace DotNetEventPipe.DataOutputTypes
{
/// <summary>
/// A GenericEvent
/// </summary>
public class GenericEvent
{
public string EventName { get; }
public TraceEventID ID { get; }
public TraceEventKeyword Keywords { get; }
public TraceEventLevel Level { get; }
public TraceEventOpcode Opcode { get; }
public string OpcodeName { get; }
public string[] PayloadNames { get; }
public object[] PayloadValues { get; }
public Guid ProviderGuid { get; }
public string ProviderName { get; }
public int ProcessID { get; }
public string ProcessName { get; }
public int ProcessorNumber { get; }
public int ThreadID { get; }
public Timestamp Timestamp { get; }
public string[] CallStack { get; }
/// <summary>
/// filename of the binary / library for the instruction pointer
/// </summary>
public TraceModuleFile Module { get; }
/// <summary>
/// Functionname of the instruction pointer
/// </summary>
public string FullMethodName { get; }
public GenericEvent(string eventName, TraceEventID id, TraceEventKeyword keywords, TraceEventLevel level, TraceEventOpcode opcode, string opcodeName, string[] payloadNames, object[] payloadValues, Guid providerGuid, string providerName, int processID, string processName, int processorNumber, int threadID, Timestamp timestamp, string[] callStack, TraceModuleFile module, string fullMethodName)
{
EventName = Common.StringIntern(eventName);
ID = id;
Keywords = keywords;
Level = level;
Opcode = opcode;
OpcodeName = Common.StringIntern(opcodeName);
PayloadNames = payloadNames;
PayloadValues = payloadValues;
ProviderGuid = providerGuid;
ProviderName = providerName;
ProcessID = processID;
ProcessName = Common.StringIntern(processName);
ProcessorNumber = processorNumber;
ThreadID = threadID;
Timestamp = timestamp;
CallStack = callStack;
Module = module;
FullMethodName = Common.StringIntern(fullMethodName);
}
}
}