diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-01 23:37:14 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-01 23:37:14 +0200 |
commit | 76ea22920c749f9f9252d20f576fb1a3b09a333e (patch) | |
tree | e601ab7b9a475c481e1ec2c4cfc9810ebedc80d7 | |
parent | d39e83c2c3478efd83601ca2403ff27895848728 (diff) |
android: Log calls to createTile
Change-Id: Ia0e92c24f771d47235fee7a9dbddc65631af9082
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index 073876e221e3..4fdf84fd4030 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -141,7 +141,11 @@ public class LOKitTileProvider implements TileProvider { float twipY = pixelToTwip(y, mDPI) / zoom; float twipWidth = mTileWidth / zoom; float twipHeight = mTileHeight / zoom; + long start = System.currentTimeMillis(); + Log.i(LOGTAG, "paintTile TOP @ " + start + "(" + TILE_SIZE + " " + TILE_SIZE + " " + (int)twipX + " " + (int)twipY + " " + (int) twipWidth + " " + (int) twipHeight + ")"); mDocument.paintTile(buffer, TILE_SIZE, TILE_SIZE, (int) twipX, (int) twipY, (int) twipWidth, (int) twipHeight); + long stop = System.currentTimeMillis(); + Log.i(LOGTAG, "paintTile TAIL @ " + stop + " - elapsed: " + (stop - start) + " "); } else { Log.e(LOGTAG, "Document is null!!"); } |