|
1 <!-- <?xml version="1.0" encoding="UTF-16"?> --> |
|
2 <instrumentationManifest |
|
3 xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" |
|
4 xmlns="http://schemas.microsoft.com/win/2004/08/events" |
|
5 xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" |
|
6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
7 xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|
8 xmlns:trace="http://schemas.microsoft.com/win/2004/08/events/trace"> |
|
9 <instrumentation> |
|
10 <events> |
|
11 <provider name="MozillaSpiderMonkey" |
|
12 message="$(string.ProviderMessage)" |
|
13 guid="{2C378EC2-8A64-4b48-9A41-3CA4506D06C5}" |
|
14 symbol="MozillaSpiderMonkey" |
|
15 resourceFileName="mozjs.dll" |
|
16 messageFileName="mozjs.dll"> |
|
17 <events> |
|
18 <!-- execution --> |
|
19 <event symbol="EvtExecuteStart" value="1001" version="1" |
|
20 channel="MozillaChannel" level="win:Informational" |
|
21 template="CodeLocationTemplate" task="Execution" opcode="ExecuteStart" |
|
22 keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ExecuteStart.message)"/> |
|
23 <event symbol="EvtExecuteDone" value="1002" version="1" |
|
24 channel="MozillaChannel" level="win:Informational" |
|
25 template="CodeLocationTemplate" task="Execution" opcode="ExecuteStop" |
|
26 keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ExecuteDone.message)"/> |
|
27 |
|
28 <event symbol="EvtScriptCompileBegin" value="1003" version="1" |
|
29 channel="MozillaChannel" level="win:Informational" |
|
30 template="CodeLocationTemplate" task="Execution" opcode="CompileBegin" |
|
31 keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ScriptCompileBegin.message)"/> |
|
32 <event symbol="EvtScriptCompileEnd" value="1004" version="1" |
|
33 channel="MozillaChannel" level="win:Informational" |
|
34 template="CodeLocationTemplate" task="Execution" opcode="CompileEnd" |
|
35 keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ScriptCompileEnd.message)"/> |
|
36 |
|
37 <event symbol="EvtCalloutBegin" value="2001" version="1" |
|
38 channel="MozillaChannel" level="win:Verbose" |
|
39 template="FunctionInvocationTemplate" task="Execution" opcode="CalloutBegin" |
|
40 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
41 <event symbol="EvtCalloutEnd" value="2002" version="1" |
|
42 channel="MozillaChannel" level="win:Verbose" |
|
43 template="FunctionInvocationTemplate" task="Execution" opcode="CalloutEnd" |
|
44 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
45 |
|
46 <event symbol="EvtFunctionEntry" value="1005" version="1" |
|
47 channel="MozillaChannel" level="win:Verbose" |
|
48 template="FunctionInvocationTemplate" task="Execution" opcode="FunctionEnter" |
|
49 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
50 <event symbol="EvtFunctionExit" value="1006" version="1" |
|
51 channel="MozillaChannel" level="win:Verbose" |
|
52 template="FunctionInvocationTemplate" task="Execution" opcode="FunctionExit" |
|
53 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
54 |
|
55 <!-- allocation --> |
|
56 <event symbol="EvtObjectCreate" value="1007" version="1" |
|
57 channel="MozillaChannel" level="win:Verbose" |
|
58 template="ObjectCreateTemplate" task="Allocation" opcode="ObjectCreate" |
|
59 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
60 <event symbol="EvtObjectFinalize" value="1008" version="1" |
|
61 channel="MozillaChannel" level="win:Verbose" |
|
62 template="ObjectFinalizeTemplate" task="Allocation" opcode="ObjectFinalize" |
|
63 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
64 |
|
65 <event symbol="EvtStringCreate" value="1009" version="1" |
|
66 channel="MozillaChannel" level="win:Verbose" |
|
67 template="StringCreateTemplate" task="Allocation" opcode="StringCreate" |
|
68 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
69 <event symbol="EvtStringFinalize" value="1010" version="1" |
|
70 channel="MozillaChannel" level="win:Verbose" |
|
71 template="StringFinalizeTemplate" task="Allocation" opcode="StringFinalize" |
|
72 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
73 |
|
74 <event symbol="EvtObjectResize" value="1011" version="1" |
|
75 channel="MozillaChannel" level="win:Verbose" |
|
76 template="ObjectResizeTemplate" task="Allocation" opcode="ObjectResize" |
|
77 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
78 |
|
79 <!-- GC --> |
|
80 <event symbol="EvtGCStart" value="1012" version="1" |
|
81 channel="MozillaChannel" level="win:Informational" |
|
82 template="VoidTemplate" task="Allocation" opcode="GCStart" |
|
83 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
84 <event symbol="EvtGCEnd" value="1013" version="1" |
|
85 channel="MozillaChannel" level="win:Informational" |
|
86 template="VoidTemplate" task="Allocation" opcode="GCEnd" |
|
87 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
88 |
|
89 <event symbol="EvtGCStartMarkPhase" value="1014" version="1" |
|
90 channel="MozillaChannel" level="win:Informational" |
|
91 template="VoidTemplate" task="Allocation" opcode="GCMarkStart" |
|
92 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
93 <event symbol="EvtGCEndMarkPhase" value="1015" version="1" |
|
94 channel="MozillaChannel" level="win:Informational" |
|
95 template="VoidTemplate" task="Allocation" opcode="GCMarkEnd" |
|
96 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
97 |
|
98 <event symbol="EvtGCStartSweepPhase" value="1016" version="1" |
|
99 channel="MozillaChannel" level="win:Informational" |
|
100 template="VoidTemplate" task="Allocation" opcode="GCSweepStart" |
|
101 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
102 <event symbol="EvtGCEndSweepPhase" value="1017" version="1" |
|
103 channel="MozillaChannel" level="win:Informational" |
|
104 template="VoidTemplate" task="Allocation" opcode="GCSweepEnd" |
|
105 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
106 |
|
107 <event symbol="EvtMemoryAcquire" value="1018" version="1" |
|
108 channel="MozillaChannel" level="win:Verbose" |
|
109 template="MemoryLocationTemplate" task="Allocation" opcode="AcquireMemory" |
|
110 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
111 <event symbol="EvtMemoryRelease" value="1019" version="1" |
|
112 channel="MozillaChannel" level="win:Verbose" |
|
113 template="MemoryLocationTemplate" task="Allocation" opcode="ReleaseMemory" |
|
114 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
115 |
|
116 <event symbol="EvtHeapResize" value="1020" version="1" |
|
117 channel="MozillaChannel" level="win:Informational" |
|
118 template="HeapResizeTemplate" task="Allocation" opcode="ResizeHeap" |
|
119 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
120 |
|
121 <event symbol="EvtCustomString" value="1021" version="1" |
|
122 channel="MozillaChannel" level="win:Informational" |
|
123 template="StringTemplate" task="Markers" opcode="CustomMark" |
|
124 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
125 <event symbol="EvtCustomANSIString" value="1022" version="1" |
|
126 channel="MozillaChannel" level="win:Informational" |
|
127 template="ANSIStringTemplate" task="Markers" opcode="CustomMark" |
|
128 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
129 <event symbol="EvtCustomInt" value="1023" version="1" |
|
130 channel="MozillaChannel" level="win:Informational" |
|
131 template="IntTemplate" task="Markers" opcode="CustomMark" |
|
132 keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> |
|
133 </events> |
|
134 |
|
135 <!-- So far, I am just using the standard win:Informational and win:Verbose levels --> |
|
136 <levels> |
|
137 </levels> |
|
138 |
|
139 <tasks> |
|
140 <task name="Execution" symbol="ExecutionTask" value="1" |
|
141 eventGUID="{A77103F5-3C77-4d71-A11A-BC6564F9B5B7}"/> |
|
142 <task name="Allocation" symbol="AllocationTask" value="2" |
|
143 eventGUID="{1FBF0FBF-019C-4a3f-BCC5-364AD54C4823}"/> |
|
144 <task name="GC" symbol="GCTask" value="3" |
|
145 eventGUID="{4BC38669-3062-41e6-AF41-12AF2D692B05}"/> |
|
146 <task name="Markers" symbol="MarkersTask" value="4" |
|
147 eventGUID="{83a61eb2-aa42-11df-AF41-0021859332ad}"/> |
|
148 </tasks> |
|
149 |
|
150 <opcodes> |
|
151 <opcode name="Default" symbol="OpDefault" value="10"/> |
|
152 <opcode name="ExecuteStart" symbol="OpExecuteStart" value="11"/> |
|
153 <opcode name="ExecuteStop" symbol="OpExecuteStop" value="12"/> |
|
154 <opcode name="CompileBegin" symbol="OpCompileBegin" value="13"/> |
|
155 <opcode name="CompileEnd" symbol="OpCompileEnd" value="14"/> |
|
156 <opcode name="CalloutBegin" symbol="OpCalloutBegin" value="15"/> |
|
157 <opcode name="CalloutEnd" symbol="OpCalloutEnd" value="16"/> |
|
158 <opcode name="FunctionEnter" symbol="OpFunctionEnter" value="17"/> |
|
159 <opcode name="FunctionExit" symbol="OpFunctionExit" value="18"/> |
|
160 <opcode name="ObjectCreate" symbol="OpObjectCreate" value="19"/> |
|
161 <opcode name="ObjectFinalize" symbol="OpObjectFinalize" value="20"/> |
|
162 <opcode name="StringCreate" symbol="OpStringCreate" value="21"/> |
|
163 <opcode name="StringFinalize" symbol="OpStringFinalize" value="22"/> |
|
164 <opcode name="ObjectResize" symbol="OpObjectResize" value="23"/> |
|
165 <opcode name="GCStart" symbol="OpGCStart" value="24"/> |
|
166 <opcode name="GCEnd" symbol="OpGCEnd" value="25"/> |
|
167 <opcode name="GCMarkStart" symbol="OpGCMarkStart" value="26"/> |
|
168 <opcode name="GCMarkEnd" symbol="OpGCMarkEnd" value="27"/> |
|
169 <opcode name="GCSweepStart" symbol="OpGCSweepStart" value="28"/> |
|
170 <opcode name="GCSweepEnd" symbol="OpGCSweepEnd" value="29"/> |
|
171 <opcode name="AcquireMemory" symbol="OpAcquireMemory" value="30"/> |
|
172 <opcode name="ReleaseMemory" symbol="OpReleaseMemory" value="31"/> |
|
173 <opcode name="ResizeHeap" symbol="OpResizeHeap" value="32"/> |
|
174 <opcode name="CustomMark" symbol="OpCustomMark" value="33"/> |
|
175 </opcodes> |
|
176 |
|
177 <channels> |
|
178 <channel name="MozillaChannel" chid="MozillaPerformanceReportingChannel" |
|
179 symbol="MOZILLA_PERFORMANCE_REPORTING_CHANNEL" type="Analytic" |
|
180 enabled="true"/> |
|
181 </channels> |
|
182 |
|
183 <keywords> |
|
184 <keyword name="SampleKeyword" symbol="KwSample" mask="0x1"/> |
|
185 </keywords> |
|
186 |
|
187 <templates> |
|
188 <template tid="CodeLocationTemplate"> |
|
189 <data name="FileName" inType="win:AnsiString" outType="xs:string"/> |
|
190 <data name="LineNumber" inType="win:Int32" outType="xs:int"/> |
|
191 </template> |
|
192 |
|
193 <template tid="ObjectCreateTemplate"> |
|
194 <data name="FileName" inType="win:AnsiString" outType="xs:string"/> |
|
195 <data name="LineNumber" inType="win:Int32" outType="xs:int"/> |
|
196 <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> |
|
197 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
198 <data name="Size" inType="win:Int64" outType="xs:long"/> |
|
199 </template> |
|
200 |
|
201 <template tid="ObjectFinalizeTemplate"> |
|
202 <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> |
|
203 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
204 </template> |
|
205 |
|
206 <template tid="ObjectResizeTemplate"> |
|
207 <data name="FileName" inType="win:AnsiString" outType="xs:string"/> |
|
208 <data name="LineNumber" inType="win:Int32" outType="xs:int"/> |
|
209 <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> |
|
210 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
211 <data name="OldSize" inType="win:Int64" outType="xs:long"/> |
|
212 <data name="NewSize" inType="win:Int64" outType="xs:long"/> |
|
213 </template> |
|
214 |
|
215 <template tid="FunctionInvocationTemplate"> |
|
216 <data name="FileName" inType="win:AnsiString" outType="xs:string"/> |
|
217 <data name="LineNumber" inType="win:Int32" outType="xs:int"/> |
|
218 <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> |
|
219 <data name="FunctionName" inType="win:AnsiString" outType="xs:string"/> |
|
220 </template> |
|
221 |
|
222 <template tid="StringCreateTemplate"> |
|
223 <data name="FileName" inType="win:AnsiString" outType="xs:string"/> |
|
224 <data name="LineNumber" inType="win:Int32" outType="xs:int"/> |
|
225 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
226 <data name="Size" inType="win:Int64" outType="xs:long"/> |
|
227 </template> |
|
228 |
|
229 <template tid="StringFinalizeTemplate"> |
|
230 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
231 <data name="Size" inType="win:Int64" outType="xs:long"/> |
|
232 </template> |
|
233 |
|
234 <template tid="MemoryLocationTemplate"> |
|
235 <data name="Compartment" inType="win:Int64" outType="xs:long"/> |
|
236 <data name="Address" inType="win:Int64" outType="xs:long"/> |
|
237 <data name="Size" inType="win:Int64" outType="xs:long"/> |
|
238 </template> |
|
239 |
|
240 <template tid="HeapResizeTemplate"> |
|
241 <data name="Compartment" inType="win:Int64" outType="xs:long"/> |
|
242 <data name="OldSize" inType="win:Int64" outType="xs:long"/> |
|
243 <data name="NewSize" inType="win:Int64" outType="xs:long"/> |
|
244 </template> |
|
245 |
|
246 <template tid="ANSIStringTemplate"> |
|
247 <data name="String" inType="win:AnsiString" outType="xs:string"/> |
|
248 </template> |
|
249 |
|
250 <template tid="StringTemplate"> |
|
251 <data name="String" inType="win:UnicodeString" outType="xs:string"/> |
|
252 </template> |
|
253 |
|
254 <template tid="IntTemplate"> |
|
255 <data name="Int" inType="win:Int32" outType="xs:int"/> |
|
256 </template> |
|
257 |
|
258 <template tid="VoidTemplate"> |
|
259 </template> |
|
260 |
|
261 </templates> |
|
262 </provider> |
|
263 </events> |
|
264 </instrumentation> |
|
265 |
|
266 <localization> |
|
267 <resources culture="en-US"> |
|
268 <stringTable> |
|
269 <string id="ProviderMessage" value="Event traces for Mozilla SpiderMonkey (Javascript engine)"/> |
|
270 <string id="MozillaSpiderMonkey.ExecuteStart.message" value="Javascript execution start" /> |
|
271 <string id="MozillaSpiderMonkey.ExecuteDone.message" value="Javascript execution end" /> |
|
272 |
|
273 <string id="MozillaSpiderMonkey.ScriptCompileBegin.message" value="Javascript code compilation start" /> |
|
274 <string id="MozillaSpiderMonkey.ScriptCompileEnd.message" value="Javascript code compilation end" /> |
|
275 <string id="SampleProvider.SampleEvent.message" value="Sample message" /> |
|
276 </stringTable> |
|
277 </resources> |
|
278 </localization> |
|
279 </instrumentationManifest> |