make renderer debugging readable faster (2)

This commit is contained in:
sonora 2011-10-30 19:57:04 +01:00
parent 4549713db4
commit 5c131240d6

View file

@ -250,8 +250,8 @@ public class OsmandRenderer {
rc.ended = true; rc.ended = true;
notifyListeners(notifyList); notifyListeners(notifyList);
long time = System.currentTimeMillis() - now; long time = System.currentTimeMillis() - now;
rc.renderingDebugInfo = String.format("Rendering done in %s (%s text) ms\n" rc.renderingDebugInfo = String.format("Rendering: %s ms (%s text)\n"
+ "(%s points, %s points inside, %s objects visile from %s)\n" + res,//$NON-NLS-1$ + "(%s points, %s points inside, %s of %s objects visible)\n" + res,//$NON-NLS-1$
time, rc.textRenderingTime, rc.pointCount, rc.pointInsideCount, rc.visible, rc.allObjects); time, rc.textRenderingTime, rc.pointCount, rc.pointInsideCount, rc.visible, rc.allObjects);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@ -337,8 +337,8 @@ public class OsmandRenderer {
drawTextOverCanvas(rc, cv, useEnglishNames); drawTextOverCanvas(rc, cv, useEnglishNames);
long time = System.currentTimeMillis() - now; long time = System.currentTimeMillis() - now;
rc.renderingDebugInfo = String.format("Rendering done in %s (%s text) ms\n" rc.renderingDebugInfo = String.format("Rendering: %s ms (%s text)\n"
+ "(%s points, %s points inside, %s objects visile from %s)",//$NON-NLS-1$ + "(%s points, %s points inside, %s of %s objects visible)",//$NON-NLS-1$
time, time - beforeIconTextTime, rc.pointCount, rc.pointInsideCount, rc.visible, rc.allObjects); time, time - beforeIconTextTime, rc.pointCount, rc.pointInsideCount, rc.visible, rc.allObjects);
log.info(rc.renderingDebugInfo); log.info(rc.renderingDebugInfo);