OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 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/linux_perf/parser.html"> | 8 <link rel="import" href="/tracing/extras/importer/linux_perf/parser.html"> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 * | 271 * |
272 * tracing_mark_write: mali_driver: (mali-012345) cros_trace_print_enter: \ | 272 * tracing_mark_write: mali_driver: (mali-012345) cros_trace_print_enter: \ |
273 * gles/src/texture/mali_gles_texture_slave.c@1505: gles2_texturep_upload | 273 * gles/src/texture/mali_gles_texture_slave.c@1505: gles2_texturep_upload |
274 * | 274 * |
275 * and a cros_trace_print_exit like this: | 275 * and a cros_trace_print_exit like this: |
276 * | 276 * |
277 * tracing_mark_write: mali_driver: (mali-012345) cros_trace_print_exit: \ | 277 * tracing_mark_write: mali_driver: (mali-012345) cros_trace_print_exit: \ |
278 * gles/src/texture/mali_gles_texture_slave.c@1505: | 278 * gles/src/texture/mali_gles_texture_slave.c@1505: |
279 */ | 279 */ |
280 maliDDKEvent: function(eventName, cpuNumber, pid, ts, eventBase) { | 280 maliDDKEvent: function(eventName, cpuNumber, pid, ts, eventBase) { |
281 if (this.lineRE == null) { | 281 if (this.lineRE === null) { |
282 this.lineRE = this.autoDetectLineRE(eventBase.details); | 282 this.lineRE = this.autoDetectLineRE(eventBase.details); |
283 if (this.lineRE == null) | 283 if (this.lineRE === null) |
284 return false; | 284 return false; |
285 } | 285 } |
286 var maliEvent = this.lineRE.exec(eventBase.details); | 286 var maliEvent = this.lineRE.exec(eventBase.details); |
287 // Old-style Mali perf events have no thread id, so make one. | 287 // Old-style Mali perf events have no thread id, so make one. |
288 var tid = (maliEvent[1] === '' ? 'mali' : maliEvent[1]); | 288 var tid = (maliEvent[1] === '' ? 'mali' : maliEvent[1]); |
289 switch (maliEvent[2]) { | 289 switch (maliEvent[2]) { |
290 case 'cros_trace_print_enter': | 290 case 'cros_trace_print_enter': |
291 this.maliDDKOpenSlice(pid, tid, ts, maliEvent[4], | 291 this.maliDDKOpenSlice(pid, tid, ts, maliEvent[4], |
292 maliEvent[3]); | 292 maliEvent[3]); |
293 break; | 293 break; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 }; | 559 }; |
560 | 560 |
561 Parser.register(MaliParser); | 561 Parser.register(MaliParser); |
562 | 562 |
563 return { | 563 return { |
564 MaliParser: MaliParser | 564 MaliParser: MaliParser |
565 }; | 565 }; |
566 }); | 566 }); |
567 </script> | 567 </script> |
568 | 568 |
OLD | NEW |