Log timing for performUpdateSuggestionStripSync.

Change-Id: Id08daf7c06e874b43deed77a49b65969dadb1565
main
Tom Ouyang 2015-04-03 15:23:52 -07:00
parent 5760cdf750
commit e1b13a4550
1 changed files with 9 additions and 0 deletions

View File

@ -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");
}
}
/**