| 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/base/color_scheme.html"> | 8 <link rel="import" href="/tracing/base/color_scheme.html"> |
| 9 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 9 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
| 10 <link rel="import" href="/tracing/extras/importer/linux_perf/android_parser.html
"> | 10 <link rel="import" href="/tracing/extras/importer/linux_perf/android_parser.html
"> |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 // Push a sleep slice onto the slices list, interrupting it with a | 589 // Push a sleep slice onto the slices list, interrupting it with a |
| 590 // wakeup if appropriate. | 590 // wakeup if appropriate. |
| 591 var pushSleep = function(state) { | 591 var pushSleep = function(state) { |
| 592 if (wakeup !== undefined) { | 592 if (wakeup !== undefined) { |
| 593 midDuration = wakeup.ts - prevSlice.end; | 593 midDuration = wakeup.ts - prevSlice.end; |
| 594 } | 594 } |
| 595 | 595 |
| 596 if (blockedReason !== undefined) { | 596 if (blockedReason !== undefined) { |
| 597 var args = { | 597 var args = { |
| 598 'kernel callsite when blocked:' : blockedReason.caller | 598 'kernel callsite when blocked:': blockedReason.caller |
| 599 }; | 599 }; |
| 600 if (blockedReason.iowait) { | 600 if (blockedReason.iowait) { |
| 601 switch (state) { | 601 switch (state) { |
| 602 case SCHEDULING_STATE.UNINTR_SLEEP: | 602 case SCHEDULING_STATE.UNINTR_SLEEP: |
| 603 state = SCHEDULING_STATE.UNINTR_SLEEP_IO; | 603 state = SCHEDULING_STATE.UNINTR_SLEEP_IO; |
| 604 break; | 604 break; |
| 605 case SCHEDULING_STATE.UNINTR_SLEEP_WAKE_KILL: | 605 case SCHEDULING_STATE.UNINTR_SLEEP_WAKE_KILL: |
| 606 state = SCHEDULING_STATE.UNINTR_SLEEP_WAKE_KILL_IO; | 606 state = SCHEDULING_STATE.UNINTR_SLEEP_WAKE_KILL_IO; |
| 607 break; | 607 break; |
| 608 case SCHEDULING_STATE.UNINTR_SLEEP_WAKING: | 608 case SCHEDULING_STATE.UNINTR_SLEEP_WAKING: |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 }; | 923 }; |
| 924 | 924 |
| 925 tr.importer.Importer.register(FTraceImporter); | 925 tr.importer.Importer.register(FTraceImporter); |
| 926 | 926 |
| 927 return { | 927 return { |
| 928 FTraceImporter: FTraceImporter, | 928 FTraceImporter: FTraceImporter, |
| 929 _FTraceImporterTestExports: TestExports | 929 _FTraceImporterTestExports: TestExports |
| 930 }; | 930 }; |
| 931 }); | 931 }); |
| 932 </script> | 932 </script> |
| OLD | NEW |