mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am e1b13a45
: Log timing for performUpdateSuggestionStripSync.
* commit 'e1b13a4550de44c63b6b57969a4ef6a91f14a781': Log timing for performUpdateSuggestionStripSync.
This commit is contained in:
commit
daebc845c4
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user