This repository was archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConstants.cs
More file actions
199 lines (161 loc) · 6.16 KB
/
Copy pathConstants.cs
File metadata and controls
199 lines (161 loc) · 6.16 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
namespace ParaTracyReplay {
/// <summary>
/// Contains a bunch of constants Tracy needs.
/// </summary>
internal class Constants {
// File protocol stuff
/// <summary>
/// The expected file signature that this program is designed to decode.
/// </summary>
public const ulong FileSignature = 0x6D64796361727475;
/// <summary>
/// The expected file version that this program is designed to decode.
/// </summary>
public const uint FileVersion = 2;
/// <summary>
/// The event ID for a zone begin in the file.
/// </summary>
public const byte FileEventZoneBegin = 15;
/// <summary>
/// The event ID for a zone end in the file.
/// </summary>
public const byte FileEventZoneEnd = 17;
/// <summary>
/// The event ID for a zone colour in the file.
/// </summary>
public const byte FileEventZoneColour = 62;
/// <summary>
/// The event ID for a marked frame in the file.
/// </summary>
public const byte FileEventFrameMark = 64;
// Network protocol stuff
/// <summary>
/// The maximum size of a network frame that the Tracy client can capture.
/// </summary>
public const int NetworkMaxFrameSize = 256 * 1024;
/// <summary>
/// Packet ID for a welcome handshake.
/// </summary>
public const byte NetworkHandshakeWelcome = 0x01;
/// <summary>
/// Packet ID for a protocol mismatch.
/// </summary>
public const byte NetworkHandshakeProtocolMismatch = 0x02;
/// <summary>
/// Packet ID for a zone begin packet.
/// </summary>
public const byte NetworkEventZoneBegin = 15;
/// <summary>
/// Packet ID for a zone end packet.
/// </summary>
public const byte NetworkEventZoneEnd = 17;
/// <summary>
/// Packet ID for a termination packet.
/// </summary>
public const byte NetworkEventTerminate = 55;
/// <summary>
/// Packet ID for a thread context packet.
/// </summary>
public const byte NetworkEventThreadContext = 57;
/// <summary>
/// Packet ID for a zone colour packet.
/// </summary>
public const byte NetworkEventZoneColour = 62;
/// <summary>
/// Packet ID for a frame mark packet.
/// </summary>
public const byte NetworkEventFrameMark = 64;
/// <summary>
/// Packet ID for a source location packet.
/// </summary>
public const byte NetworkEventSrcloc = 67;
/// <summary>
/// Packet ID for a response to a no-op query.
/// </summary>
public const byte NetworkResponseServerQueryNoop = 87;
/// <summary>
/// Packet ID for a response to a source code request to say it isnt available.
/// </summary>
public const byte NetworkResponseSourceCodeNotAvailable = 88;
/// <summary>
/// Packet ID for a response to a source code request to say it isnt available.
/// </summary>
public const byte NetworkResponseSymbolCodeNotAvailable = 89;
/// <summary>
/// Packet ID for a response containing string data.
/// </summary>
public const byte NetworkResponseStringData = 94;
/// <summary>
/// Packet ID for a response containing a thread name.
/// </summary>
public const byte NetworkResponseThreadName = 95;
/// <summary>
/// Packet ID for a request about a termination.
/// </summary>
public const byte NetworkQueryTerminate = 0;
/// <summary>
/// Packet ID for a request about a string.
/// </summary>
public const byte NetworkQueryString = 1;
/// <summary>
/// Packet ID for a request about a thread string.
/// </summary>
public const byte NetworkQueryThreadString = 2;
/// <summary>
/// Packet ID for a request about a source location.
/// </summary>
public const byte NetworkQuerySrcloc = 3;
/// <summary>
/// Packet ID for a request about a plot name.
/// </summary>
public const byte NetworkQueryPlotName = 4;
/// <summary>
/// Packet ID for a request about a frame name.
/// </summary>
public const byte NetworkQueryFrameName = 5;
/// <summary>
/// Packet ID for a request about a query parameter.
/// </summary>
public const byte NetworkQueryParameter = 6;
/// <summary>
/// Packet ID for a request about a fiber name.
/// </summary>
public const byte NetworkQueryFiberName = 7;
/// <summary>
/// Packet ID for a disconnect.
/// </summary>
public const byte NetworkQueryDisconnect = 8;
/// <summary>
/// Packet ID for a request about a callstack frame.
/// </summary>
public const byte NetworkQueryCallstackFrame = 9;
/// <summary>
/// Packet ID for a request about an external name.
/// </summary>
public const byte NetworkQueryExternalName = 10;
/// <summary>
/// Packet ID for a request about a symbol.
/// </summary>
public const byte NetworkQuerySymbol = 11;
/// <summary>
/// Packet ID for a request about symbol code.
/// </summary>
public const byte NetworkQuerySymbolCode = 12;
/// <summary>
/// Packet ID for a request about a code location.
/// </summary>
public const byte NetworkQueryCodeLocation = 13;
/// <summary>
/// Packet ID for a request about source code.
/// </summary>
public const byte NetworkQuerySourceCode = 14;
/// <summary>
/// Packet ID for a request about data transfer.
/// </summary>
public const byte NetworkQueryDataTransfer = 15;
/// <summary>
/// Packet ID for a request about partial data transfer.
/// </summary>
public const byte NetworkQueryDataTransferPart = 16;
}
}