Kaydet (Commit) f95f3070 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tomaž Vajngerl

Log time since object creation, not since epoch

Change-Id: I43c7725b88c9326e269abc277f42e47c08acefb5
üst 83268481
......@@ -28,6 +28,8 @@ public class LOKitTileProvider implements TileProvider {
private float mWidthTwip;
private float mHeightTwip;
private long objectCreationTime = System.currentTimeMillis();
public LOKitTileProvider(LayerController layerController, String input) {
mLayerController = layerController;
mDPI = (float) LOKitShell.getDpi();
......@@ -166,11 +168,13 @@ 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 + "(" + tileSize.width + " " + tileSize.height + " " + (int) twipX + " " + (int) twipY + " " + (int) twipWidth + " " + (int) twipHeight + ")");
long start = System.currentTimeMillis() - objectCreationTime;
Log.i(LOGTAG, "paintTile >> @" + start + " (" + tileSize.width + " " + tileSize.height + " " + (int) twipX + " " + (int) twipY + " " + (int) twipWidth + " " + (int) twipHeight + ")");
mDocument.paintTile(buffer, tileSize.width, tileSize.height, (int) twipX, (int) twipY, (int) twipWidth, (int) twipHeight);
long stop = System.currentTimeMillis();
Log.i(LOGTAG, "paintTile TAIL @ " + stop + " - elapsed: " + (stop - start) + " ");
long stop = System.currentTimeMillis() - objectCreationTime;
Log.i(LOGTAG, "paintTile << @" + stop + " elapsed: " + (stop - start));
} else {
Log.e(LOGTAG, "Document is null!!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment