diff options
author | Keun-young Park <keunyoung@google.com> | 2019-02-06 09:50:12 -0800 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2019-02-06 09:50:12 -0800 |
commit | 670cd8349378ffc9ce459ffaff03aa6c1d9aeec5 (patch) | |
tree | 69120685598253b9fe3322f7f3be1b89f9b17e71 /boottime_tools | |
parent | 2639420a8aa08e0919cbf60399c7eeb6fff7de98 (diff) | |
download | extras-670cd8349378ffc9ce459ffaff03aa6c1d9aeec5.tar.gz |
Fix bootanalyze for car and other timing bug
- Launcher name covers car launcher
- Fix wrong time delta selection for boot complete:
Time update right after animation update makes it fail before this fix.
Bug: 123958835,120991898
Test: run python system/extras/boottime_tools/bootanalyze/bootanalyze.py -c system/extras/boottime_tools/bootanalyze/config.yaml -r
Change-Id: I86c2f6bff288e69eb70516bba206507e1090de4a
Diffstat (limited to 'boottime_tools')
-rwxr-xr-x | boottime_tools/bootanalyze/bootanalyze.py | 4 | ||||
-rw-r--r-- | boottime_tools/bootanalyze/config.yaml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/boottime_tools/bootanalyze/bootanalyze.py b/boottime_tools/bootanalyze/bootanalyze.py index e5c1f555..a899f925 100755 --- a/boottime_tools/bootanalyze/bootanalyze.py +++ b/boottime_tools/bootanalyze/bootanalyze.py @@ -361,8 +361,8 @@ def iterate(args, search_events_pattern, timings_pattern, shutdown_events_patter print "BootAnimEnd time or BootComplete-kernel not captured in both log" +\ ", cannot get time diff" return None, None, None, None, None, None - diffs.append((logcat_event_time[KERNEL_BOOT_COMPLETE],\ - logcat_event_time[KERNEL_BOOT_COMPLETE] - dmesg_event_time[KERNEL_BOOT_COMPLETE])) + diffs.append((logcat_event_time[LOGCAT_BOOT_COMPLETE],\ + logcat_event_time[LOGCAT_BOOT_COMPLETE] - dmesg_event_time[KERNEL_BOOT_COMPLETE])) for k, v in logcat_event_time.iteritems(): debug("event[{0}, {1}]".format(k, v)) diff --git a/boottime_tools/bootanalyze/config.yaml b/boottime_tools/bootanalyze/config.yaml index 17730dc9..ee97d38a 100644 --- a/boottime_tools/bootanalyze/config.yaml +++ b/boottime_tools/bootanalyze/config.yaml @@ -55,7 +55,7 @@ events: KeyguardShown: KeyguardServiceDelegate.*\*\*\*\* SHOWN CALLED \*\*\*\* BootComplete: Starting phase 1000 BootComplete_kernel: processing action \(sys\.boot_completed=1\) - LauncherStart: START.*HOME.*(NexusLauncherActivity|GEL|LensPickerTrampolineActivity|SetupWizardActivity) + LauncherStart: START.*HOME.*(NexusLauncherActivity|GEL|LensPickerTrampolineActivity|SetupWizardActivity|CarLauncher) FsStat: fs_stat, partition:userdata stat:(0x\S+) shutdown_events: ShutdownStart: ShutdownThread:\sNotifying thread to start shutdown |