am e1b13a45: Log timing for performUpdateSuggestionStripSync.

* commit 'e1b13a4550de44c63b6b57969a4ef6a91f14a781':
  Log timing for performUpdateSuggestionStripSync.
This commit is contained in:
Tom Ouyang 2015-04-03 22:49:07 +00:00 committed by Android Git Automerger
commit daebc845c4

View File

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