Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1b13a45 authored by Tom Ouyang's avatar Tom Ouyang
Browse files

Log timing for performUpdateSuggestionStripSync.

Change-Id: Id08daf7c06e874b43deed77a49b65969dadb1565
parent 5760cdf7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1420,6 +1420,11 @@ public final class InputLogic {

    public void performUpdateSuggestionStripSync(final SettingsValues settingsValues,
            final int inputStyle) {
        long startTimeMillis = 0;
        if (DebugFlags.DEBUG_ENABLED) {
            startTimeMillis = System.currentTimeMillis();
            Log.d(TAG, "performUpdateSuggestionStripSync()");
        }
        // Check if we have a suggestion engine attached.
        if (!settingsValues.needsToLookupSuggestions()) {
            if (mWordComposer.isComposingWord()) {
@@ -1466,6 +1471,10 @@ public final class InputLogic {
        if (suggestedWords != null) {
            mSuggestionStripViewAccessor.showSuggestionStrip(suggestedWords);
        }
        if (DebugFlags.DEBUG_ENABLED) {
            long runTimeMillis = System.currentTimeMillis() - startTimeMillis;
            Log.d(TAG, "performUpdateSuggestionStripSync() : " + runTimeMillis + " ms to finish");
        }
    }

    /**