Skip to content

Commit 1845c4f

Browse files
committed
etw: add event messages
Reviewed-By: Ben Noordhuis <[email protected]> PR-URL: nodejs#5936
1 parent 54a5287 commit 1845c4f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/res/node_etw_provider.man

+32
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<provider name="NodeJS-ETW-provider"
88
guid="{77754E9B-264B-4D8D-B981-E4135C1ECB0C}"
99
symbol="NODE_ETW_PROVIDER"
10+
message="$(string.NodeJS-ETW-provider.name)"
1011
resourceFileName="node.exe"
1112
messageFileName="node.exe">
1213

@@ -90,64 +91,95 @@
9091
opcode="NODE_HTTP_SERVER_REQUEST"
9192
template="node_http_server_request"
9293
symbol="NODE_HTTP_SERVER_REQUEST_EVENT"
94+
message="$(string.NodeJS-ETW-provider.event.1.message)"
9395
level="win:Informational"/>
9496
<event value="2"
9597
opcode="NODE_HTTP_SERVER_RESPONSE"
9698
template="node_connection"
9799
symbol="NODE_HTTP_SERVER_RESPONSE_EVENT"
100+
message="$(string.NodeJS-ETW-provider.event.2.message)"
98101
level="win:Informational"/>
99102
<event value="3"
100103
opcode="NODE_HTTP_CLIENT_REQUEST"
101104
template="node_http_client_request"
102105
symbol="NODE_HTTP_CLIENT_REQUEST_EVENT"
106+
message="$(string.NodeJS-ETW-provider.event.3.message)"
103107
level="win:Informational"/>
104108
<event value="4"
105109
opcode="NODE_HTTP_CLIENT_RESPONSE"
106110
template="node_connection"
107111
symbol="NODE_HTTP_CLIENT_RESPONSE_EVENT"
112+
message="$(string.NodeJS-ETW-provider.event.4.message)"
108113
level="win:Informational"/>
109114
<event value="5"
110115
opcode="NODE_NET_SERVER_CONNECTION"
111116
template="node_connection"
112117
symbol="NODE_NET_SERVER_CONNECTION_EVENT"
118+
message="$(string.NodeJS-ETW-provider.event.5.message)"
113119
level="win:Informational"/>
114120
<event value="6"
115121
opcode="NODE_NET_STREAM_END"
116122
template="node_connection"
117123
symbol="NODE_NET_STREAM_END_EVENT"
124+
message="$(string.NodeJS-ETW-provider.event.6.message)"
118125
level="win:Informational"/>
119126
<event value="7"
120127
opcode="NODE_GC_START"
121128
template="node_gc"
122129
symbol="NODE_GC_START_EVENT"
130+
message="$(string.NodeJS-ETW-provider.event.7.message)"
123131
level="win:Informational"/>
124132
<event value="8"
125133
opcode="NODE_GC_DONE"
126134
template="node_gc"
127135
symbol="NODE_GC_DONE_EVENT"
136+
message="$(string.NodeJS-ETW-provider.event.8.message)"
128137
level="win:Informational"/>
129138
<event value="9"
130139
level="win:Informational"
131140
opcode="MethodLoad"
132141
symbol="MethodLoad"
142+
message="$(string.NodeJS-ETW-provider.event.9.message)"
133143
task="MethodRuntime"
134144
template="MethodLoadUnload"/>
135145
<event value="21"
136146
opcode="NODE_V8SYMBOL_REMOVE"
137147
template="V8AddressChange"
138148
symbol="NODE_V8SYMBOL_REMOVE_EVENT"
149+
message="$(string.NodeJS-ETW-provider.event.21.message)"
139150
level="win:Informational" />
140151
<event value="22"
141152
opcode="NODE_V8SYMBOL_MOVE"
142153
template="V8AddressChange"
143154
symbol="NODE_V8SYMBOL_MOVE_EVENT"
155+
message="$(string.NodeJS-ETW-provider.event.22.message)"
144156
level="win:Informational" />
145157
<event value="23"
146158
opcode="NODE_V8SYMBOL_RESET"
147159
symbol="NODE_V8SYMBOL_RESET_EVENT"
160+
message="$(string.NodeJS-ETW-provider.event.23.message)"
148161
level="win:Informational" />
149162
</events>
150163
</provider>
151164
</events>
152165
</instrumentation>
166+
<localization>
167+
<resources culture="en-US">
168+
<stringTable>
169+
<string id="NodeJS-ETW-provider.name" value="Node.js ETW Provider"/>
170+
<string id="NodeJS-ETW-provider.event.1.message" value="Node.js HTTP Server Request%nMethod: %2%nRemote: %6%nPort: %5%nURL: %1"/>
171+
<string id="NodeJS-ETW-provider.event.2.message" value="Node.js HTTP Server Response%nRemote: %3%nPort: %2"/>
172+
<string id="NodeJS-ETW-provider.event.3.message" value="Node.js HTTP Client Request%nMethod: %2%nRemote: %5%nPort: %4%nURL: %1"/>
173+
<string id="NodeJS-ETW-provider.event.4.message" value="Node.js HTTP Client Response%nRemote: %3%nPort: %2"/>
174+
<string id="NodeJS-ETW-provider.event.5.message" value="Node.js Net Server Connection%nRemote: %3%nPort: %2"/>
175+
<string id="NodeJS-ETW-provider.event.6.message" value="Node.js Net Stream End%nRemote: %3%nPort: %2"/>
176+
<string id="NodeJS-ETW-provider.event.7.message" value="Node.js Garbage Collection Start"/>
177+
<string id="NodeJS-ETW-provider.event.8.message" value="Node.js Garbage Collection Done"/>
178+
<string id="NodeJS-ETW-provider.event.9.message" value="Node.js Function Compiled: %10"/>
179+
<string id="NodeJS-ETW-provider.event.21.message" value="Node.js V8 Symbol Remove"/>
180+
<string id="NodeJS-ETW-provider.event.22.message" value="Node.js V8 Symbol Move"/>
181+
<string id="NodeJS-ETW-provider.event.23.message" value="Node.js V8 Symbol Reset"/>
182+
</stringTable>
183+
</resources>
184+
</localization>
153185
</instrumentationManifest>

0 commit comments

Comments
 (0)