1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/devtools/ETWProvider.man Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,279 @@ 1.4 +<!-- <?xml version="1.0" encoding="UTF-16"?> --> 1.5 +<instrumentationManifest 1.6 + xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" 1.7 + xmlns="http://schemas.microsoft.com/win/2004/08/events" 1.8 + xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" 1.9 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 1.10 + xmlns:xs="http://www.w3.org/2001/XMLSchema" 1.11 + xmlns:trace="http://schemas.microsoft.com/win/2004/08/events/trace"> 1.12 + <instrumentation> 1.13 + <events> 1.14 + <provider name="MozillaSpiderMonkey" 1.15 + message="$(string.ProviderMessage)" 1.16 + guid="{2C378EC2-8A64-4b48-9A41-3CA4506D06C5}" 1.17 + symbol="MozillaSpiderMonkey" 1.18 + resourceFileName="mozjs.dll" 1.19 + messageFileName="mozjs.dll"> 1.20 + <events> 1.21 + <!-- execution --> 1.22 + <event symbol="EvtExecuteStart" value="1001" version="1" 1.23 + channel="MozillaChannel" level="win:Informational" 1.24 + template="CodeLocationTemplate" task="Execution" opcode="ExecuteStart" 1.25 + keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ExecuteStart.message)"/> 1.26 + <event symbol="EvtExecuteDone" value="1002" version="1" 1.27 + channel="MozillaChannel" level="win:Informational" 1.28 + template="CodeLocationTemplate" task="Execution" opcode="ExecuteStop" 1.29 + keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ExecuteDone.message)"/> 1.30 + 1.31 + <event symbol="EvtScriptCompileBegin" value="1003" version="1" 1.32 + channel="MozillaChannel" level="win:Informational" 1.33 + template="CodeLocationTemplate" task="Execution" opcode="CompileBegin" 1.34 + keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ScriptCompileBegin.message)"/> 1.35 + <event symbol="EvtScriptCompileEnd" value="1004" version="1" 1.36 + channel="MozillaChannel" level="win:Informational" 1.37 + template="CodeLocationTemplate" task="Execution" opcode="CompileEnd" 1.38 + keywords="SampleKeyword" message="$(string.MozillaSpiderMonkey.ScriptCompileEnd.message)"/> 1.39 + 1.40 + <event symbol="EvtCalloutBegin" value="2001" version="1" 1.41 + channel="MozillaChannel" level="win:Verbose" 1.42 + template="FunctionInvocationTemplate" task="Execution" opcode="CalloutBegin" 1.43 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.44 + <event symbol="EvtCalloutEnd" value="2002" version="1" 1.45 + channel="MozillaChannel" level="win:Verbose" 1.46 + template="FunctionInvocationTemplate" task="Execution" opcode="CalloutEnd" 1.47 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.48 + 1.49 + <event symbol="EvtFunctionEntry" value="1005" version="1" 1.50 + channel="MozillaChannel" level="win:Verbose" 1.51 + template="FunctionInvocationTemplate" task="Execution" opcode="FunctionEnter" 1.52 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.53 + <event symbol="EvtFunctionExit" value="1006" version="1" 1.54 + channel="MozillaChannel" level="win:Verbose" 1.55 + template="FunctionInvocationTemplate" task="Execution" opcode="FunctionExit" 1.56 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.57 + 1.58 + <!-- allocation --> 1.59 + <event symbol="EvtObjectCreate" value="1007" version="1" 1.60 + channel="MozillaChannel" level="win:Verbose" 1.61 + template="ObjectCreateTemplate" task="Allocation" opcode="ObjectCreate" 1.62 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.63 + <event symbol="EvtObjectFinalize" value="1008" version="1" 1.64 + channel="MozillaChannel" level="win:Verbose" 1.65 + template="ObjectFinalizeTemplate" task="Allocation" opcode="ObjectFinalize" 1.66 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.67 + 1.68 + <event symbol="EvtStringCreate" value="1009" version="1" 1.69 + channel="MozillaChannel" level="win:Verbose" 1.70 + template="StringCreateTemplate" task="Allocation" opcode="StringCreate" 1.71 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.72 + <event symbol="EvtStringFinalize" value="1010" version="1" 1.73 + channel="MozillaChannel" level="win:Verbose" 1.74 + template="StringFinalizeTemplate" task="Allocation" opcode="StringFinalize" 1.75 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.76 + 1.77 + <event symbol="EvtObjectResize" value="1011" version="1" 1.78 + channel="MozillaChannel" level="win:Verbose" 1.79 + template="ObjectResizeTemplate" task="Allocation" opcode="ObjectResize" 1.80 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.81 + 1.82 + <!-- GC --> 1.83 + <event symbol="EvtGCStart" value="1012" version="1" 1.84 + channel="MozillaChannel" level="win:Informational" 1.85 + template="VoidTemplate" task="Allocation" opcode="GCStart" 1.86 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.87 + <event symbol="EvtGCEnd" value="1013" version="1" 1.88 + channel="MozillaChannel" level="win:Informational" 1.89 + template="VoidTemplate" task="Allocation" opcode="GCEnd" 1.90 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.91 + 1.92 + <event symbol="EvtGCStartMarkPhase" value="1014" version="1" 1.93 + channel="MozillaChannel" level="win:Informational" 1.94 + template="VoidTemplate" task="Allocation" opcode="GCMarkStart" 1.95 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.96 + <event symbol="EvtGCEndMarkPhase" value="1015" version="1" 1.97 + channel="MozillaChannel" level="win:Informational" 1.98 + template="VoidTemplate" task="Allocation" opcode="GCMarkEnd" 1.99 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.100 + 1.101 + <event symbol="EvtGCStartSweepPhase" value="1016" version="1" 1.102 + channel="MozillaChannel" level="win:Informational" 1.103 + template="VoidTemplate" task="Allocation" opcode="GCSweepStart" 1.104 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.105 + <event symbol="EvtGCEndSweepPhase" value="1017" version="1" 1.106 + channel="MozillaChannel" level="win:Informational" 1.107 + template="VoidTemplate" task="Allocation" opcode="GCSweepEnd" 1.108 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.109 + 1.110 + <event symbol="EvtMemoryAcquire" value="1018" version="1" 1.111 + channel="MozillaChannel" level="win:Verbose" 1.112 + template="MemoryLocationTemplate" task="Allocation" opcode="AcquireMemory" 1.113 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.114 + <event symbol="EvtMemoryRelease" value="1019" version="1" 1.115 + channel="MozillaChannel" level="win:Verbose" 1.116 + template="MemoryLocationTemplate" task="Allocation" opcode="ReleaseMemory" 1.117 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.118 + 1.119 + <event symbol="EvtHeapResize" value="1020" version="1" 1.120 + channel="MozillaChannel" level="win:Informational" 1.121 + template="HeapResizeTemplate" task="Allocation" opcode="ResizeHeap" 1.122 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.123 + 1.124 + <event symbol="EvtCustomString" value="1021" version="1" 1.125 + channel="MozillaChannel" level="win:Informational" 1.126 + template="StringTemplate" task="Markers" opcode="CustomMark" 1.127 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.128 + <event symbol="EvtCustomANSIString" value="1022" version="1" 1.129 + channel="MozillaChannel" level="win:Informational" 1.130 + template="ANSIStringTemplate" task="Markers" opcode="CustomMark" 1.131 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.132 + <event symbol="EvtCustomInt" value="1023" version="1" 1.133 + channel="MozillaChannel" level="win:Informational" 1.134 + template="IntTemplate" task="Markers" opcode="CustomMark" 1.135 + keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"/> 1.136 + </events> 1.137 + 1.138 + <!-- So far, I am just using the standard win:Informational and win:Verbose levels --> 1.139 + <levels> 1.140 + </levels> 1.141 + 1.142 + <tasks> 1.143 + <task name="Execution" symbol="ExecutionTask" value="1" 1.144 + eventGUID="{A77103F5-3C77-4d71-A11A-BC6564F9B5B7}"/> 1.145 + <task name="Allocation" symbol="AllocationTask" value="2" 1.146 + eventGUID="{1FBF0FBF-019C-4a3f-BCC5-364AD54C4823}"/> 1.147 + <task name="GC" symbol="GCTask" value="3" 1.148 + eventGUID="{4BC38669-3062-41e6-AF41-12AF2D692B05}"/> 1.149 + <task name="Markers" symbol="MarkersTask" value="4" 1.150 + eventGUID="{83a61eb2-aa42-11df-AF41-0021859332ad}"/> 1.151 + </tasks> 1.152 + 1.153 + <opcodes> 1.154 + <opcode name="Default" symbol="OpDefault" value="10"/> 1.155 + <opcode name="ExecuteStart" symbol="OpExecuteStart" value="11"/> 1.156 + <opcode name="ExecuteStop" symbol="OpExecuteStop" value="12"/> 1.157 + <opcode name="CompileBegin" symbol="OpCompileBegin" value="13"/> 1.158 + <opcode name="CompileEnd" symbol="OpCompileEnd" value="14"/> 1.159 + <opcode name="CalloutBegin" symbol="OpCalloutBegin" value="15"/> 1.160 + <opcode name="CalloutEnd" symbol="OpCalloutEnd" value="16"/> 1.161 + <opcode name="FunctionEnter" symbol="OpFunctionEnter" value="17"/> 1.162 + <opcode name="FunctionExit" symbol="OpFunctionExit" value="18"/> 1.163 + <opcode name="ObjectCreate" symbol="OpObjectCreate" value="19"/> 1.164 + <opcode name="ObjectFinalize" symbol="OpObjectFinalize" value="20"/> 1.165 + <opcode name="StringCreate" symbol="OpStringCreate" value="21"/> 1.166 + <opcode name="StringFinalize" symbol="OpStringFinalize" value="22"/> 1.167 + <opcode name="ObjectResize" symbol="OpObjectResize" value="23"/> 1.168 + <opcode name="GCStart" symbol="OpGCStart" value="24"/> 1.169 + <opcode name="GCEnd" symbol="OpGCEnd" value="25"/> 1.170 + <opcode name="GCMarkStart" symbol="OpGCMarkStart" value="26"/> 1.171 + <opcode name="GCMarkEnd" symbol="OpGCMarkEnd" value="27"/> 1.172 + <opcode name="GCSweepStart" symbol="OpGCSweepStart" value="28"/> 1.173 + <opcode name="GCSweepEnd" symbol="OpGCSweepEnd" value="29"/> 1.174 + <opcode name="AcquireMemory" symbol="OpAcquireMemory" value="30"/> 1.175 + <opcode name="ReleaseMemory" symbol="OpReleaseMemory" value="31"/> 1.176 + <opcode name="ResizeHeap" symbol="OpResizeHeap" value="32"/> 1.177 + <opcode name="CustomMark" symbol="OpCustomMark" value="33"/> 1.178 + </opcodes> 1.179 + 1.180 + <channels> 1.181 + <channel name="MozillaChannel" chid="MozillaPerformanceReportingChannel" 1.182 + symbol="MOZILLA_PERFORMANCE_REPORTING_CHANNEL" type="Analytic" 1.183 + enabled="true"/> 1.184 + </channels> 1.185 + 1.186 + <keywords> 1.187 + <keyword name="SampleKeyword" symbol="KwSample" mask="0x1"/> 1.188 + </keywords> 1.189 + 1.190 + <templates> 1.191 + <template tid="CodeLocationTemplate"> 1.192 + <data name="FileName" inType="win:AnsiString" outType="xs:string"/> 1.193 + <data name="LineNumber" inType="win:Int32" outType="xs:int"/> 1.194 + </template> 1.195 + 1.196 + <template tid="ObjectCreateTemplate"> 1.197 + <data name="FileName" inType="win:AnsiString" outType="xs:string"/> 1.198 + <data name="LineNumber" inType="win:Int32" outType="xs:int"/> 1.199 + <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> 1.200 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.201 + <data name="Size" inType="win:Int64" outType="xs:long"/> 1.202 + </template> 1.203 + 1.204 + <template tid="ObjectFinalizeTemplate"> 1.205 + <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> 1.206 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.207 + </template> 1.208 + 1.209 + <template tid="ObjectResizeTemplate"> 1.210 + <data name="FileName" inType="win:AnsiString" outType="xs:string"/> 1.211 + <data name="LineNumber" inType="win:Int32" outType="xs:int"/> 1.212 + <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> 1.213 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.214 + <data name="OldSize" inType="win:Int64" outType="xs:long"/> 1.215 + <data name="NewSize" inType="win:Int64" outType="xs:long"/> 1.216 + </template> 1.217 + 1.218 + <template tid="FunctionInvocationTemplate"> 1.219 + <data name="FileName" inType="win:AnsiString" outType="xs:string"/> 1.220 + <data name="LineNumber" inType="win:Int32" outType="xs:int"/> 1.221 + <data name="ClassName" inType="win:AnsiString" outType="xs:string"/> 1.222 + <data name="FunctionName" inType="win:AnsiString" outType="xs:string"/> 1.223 + </template> 1.224 + 1.225 + <template tid="StringCreateTemplate"> 1.226 + <data name="FileName" inType="win:AnsiString" outType="xs:string"/> 1.227 + <data name="LineNumber" inType="win:Int32" outType="xs:int"/> 1.228 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.229 + <data name="Size" inType="win:Int64" outType="xs:long"/> 1.230 + </template> 1.231 + 1.232 + <template tid="StringFinalizeTemplate"> 1.233 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.234 + <data name="Size" inType="win:Int64" outType="xs:long"/> 1.235 + </template> 1.236 + 1.237 + <template tid="MemoryLocationTemplate"> 1.238 + <data name="Compartment" inType="win:Int64" outType="xs:long"/> 1.239 + <data name="Address" inType="win:Int64" outType="xs:long"/> 1.240 + <data name="Size" inType="win:Int64" outType="xs:long"/> 1.241 + </template> 1.242 + 1.243 + <template tid="HeapResizeTemplate"> 1.244 + <data name="Compartment" inType="win:Int64" outType="xs:long"/> 1.245 + <data name="OldSize" inType="win:Int64" outType="xs:long"/> 1.246 + <data name="NewSize" inType="win:Int64" outType="xs:long"/> 1.247 + </template> 1.248 + 1.249 + <template tid="ANSIStringTemplate"> 1.250 + <data name="String" inType="win:AnsiString" outType="xs:string"/> 1.251 + </template> 1.252 + 1.253 + <template tid="StringTemplate"> 1.254 + <data name="String" inType="win:UnicodeString" outType="xs:string"/> 1.255 + </template> 1.256 + 1.257 + <template tid="IntTemplate"> 1.258 + <data name="Int" inType="win:Int32" outType="xs:int"/> 1.259 + </template> 1.260 + 1.261 + <template tid="VoidTemplate"> 1.262 + </template> 1.263 + 1.264 + </templates> 1.265 + </provider> 1.266 + </events> 1.267 + </instrumentation> 1.268 + 1.269 + <localization> 1.270 + <resources culture="en-US"> 1.271 + <stringTable> 1.272 + <string id="ProviderMessage" value="Event traces for Mozilla SpiderMonkey (Javascript engine)"/> 1.273 + <string id="MozillaSpiderMonkey.ExecuteStart.message" value="Javascript execution start" /> 1.274 + <string id="MozillaSpiderMonkey.ExecuteDone.message" value="Javascript execution end" /> 1.275 + 1.276 + <string id="MozillaSpiderMonkey.ScriptCompileBegin.message" value="Javascript code compilation start" /> 1.277 + <string id="MozillaSpiderMonkey.ScriptCompileEnd.message" value="Javascript code compilation end" /> 1.278 + <string id="SampleProvider.SampleEvent.message" value="Sample message" /> 1.279 + </stringTable> 1.280 + </resources> 1.281 + </localization> 1.282 +</instrumentationManifest>