Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: tracing/tracing/extras/importer/etw/process_parser.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « tracing/tracing/extras/importer/etw/eventtrace_parser.html ('k') | tracing/tracing/extras/importer/etw/thread_parser.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698