OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/extras/importer/etw/parser.html"> | 8 <link rel="import" href="/tracing/extras/importer/etw/parser.html"> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 ProcessParser.prototype = { | 58 ProcessParser.prototype = { |
59 __proto__: Parser.prototype, | 59 __proto__: Parser.prototype, |
60 | 60 |
61 decodeFields: function(header, decoder) { | 61 decodeFields: function(header, decoder) { |
62 if (header.version > 5) | 62 if (header.version > 5) |
63 throw new Error('Incompatible Process event version.'); | 63 throw new Error('Incompatible Process event version.'); |
64 | 64 |
65 var pageDirectoryBase; | 65 var pageDirectoryBase; |
66 if (header.version == 1) | 66 if (header.version === 1) |
67 pageDirectoryBase = decoder.decodeUInteger(header.is64); | 67 pageDirectoryBase = decoder.decodeUInteger(header.is64); |
68 | 68 |
69 var uniqueProcessKey; | 69 var uniqueProcessKey; |
70 if (header.version >= 2) | 70 if (header.version >= 2) |
71 uniqueProcessKey = decoder.decodeUInteger(header.is64); | 71 uniqueProcessKey = decoder.decodeUInteger(header.is64); |
72 | 72 |
73 var processId = decoder.decodeUInt32(); | 73 var processId = decoder.decodeUInt32(); |
74 var parentId = decoder.decodeUInt32(); | 74 var parentId = decoder.decodeUInt32(); |
75 | 75 |
76 var sessionId; | 76 var sessionId; |
(...skipping 22 matching lines...) Expand all Loading... |
99 commandLine = decoder.decodeW16String(); | 99 commandLine = decoder.decodeW16String(); |
100 | 100 |
101 var packageFullName; | 101 var packageFullName; |
102 var applicationId; | 102 var applicationId; |
103 if (header.version >= 4) { | 103 if (header.version >= 4) { |
104 packageFullName = decoder.decodeW16String(); | 104 packageFullName = decoder.decodeW16String(); |
105 applicationId = decoder.decodeW16String(); | 105 applicationId = decoder.decodeW16String(); |
106 } | 106 } |
107 | 107 |
108 var exitTime; | 108 var exitTime; |
109 if (header.version == 5 && header.opcode == kProcessDefunctOpcode) | 109 if (header.version === 5 && header.opcode === kProcessDefunctOpcode) |
110 exitTime = decoder.decodeUInt64ToString(); | 110 exitTime = decoder.decodeUInt64ToString(); |
111 | 111 |
112 return { | 112 return { |
113 pageDirectoryBase: pageDirectoryBase, | 113 pageDirectoryBase: pageDirectoryBase, |
114 uniqueProcessKey: uniqueProcessKey, | 114 uniqueProcessKey: uniqueProcessKey, |
115 processId: processId, | 115 processId: processId, |
116 parentId: parentId, | 116 parentId: parentId, |
117 sessionId: sessionId, | 117 sessionId: sessionId, |
118 exitStatus: exitStatus, | 118 exitStatus: exitStatus, |
119 directoryTableBase: directoryTableBase, | 119 directoryTableBase: directoryTableBase, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 }; | 172 }; |
173 | 173 |
174 Parser.register(ProcessParser); | 174 Parser.register(ProcessParser); |
175 | 175 |
176 return { | 176 return { |
177 ProcessParser: ProcessParser | 177 ProcessParser: ProcessParser |
178 }; | 178 }; |
179 }); | 179 }); |
180 </script> | 180 </script> |
181 | 181 |
OLD | NEW |