Changeset 7043 in josm
- Timestamp:
- 2014-05-02T00:43:10+02:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r7040 r7043 190 190 <arg value="${javacc.home}/javacc.jar"/> 191 191 <arg value="javacc"/> 192 <arg value="-DEBUG_PARSER=false"/> 193 <arg value="-DEBUG_TOKEN_MANAGER=false"/> 192 194 <arg value="-JDK_VERSION=1.7"/> 193 195 <arg value="-GRAMMAR_ENCODING=UTF-8"/> -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r7040 r7043 1404 1404 1405 1405 highlightWaySegments = data.getHighlightedWaySegments(); 1406 1407 long timeStart=0, timePhase1=0, timeFinished; 1408 if (Main.isTraceEnabled()) { 1409 timeStart = System.currentTimeMillis(); 1410 System.err.print("BENCHMARK: rendering "); 1411 Main.debug(null); 1412 } 1406 1413 1407 1414 StyleCollector sc = new StyleCollector(drawArea, drawMultipolygon, drawRestriction); … … 1409 1416 collectWayStyles(data, sc, bbox); 1410 1417 collectRelationStyles(data, sc, bbox); 1418 1419 if (Main.isTraceEnabled()) { 1420 timePhase1 = System.currentTimeMillis(); 1421 System.err.print("phase 1 (calculate styles): " + (timePhase1 - timeStart) + " ms"); 1422 } 1423 1411 1424 sc.drawAll(); 1412 1425 sc = null; 1426 1427 if (Main.isTraceEnabled()) { 1428 timeFinished = System.currentTimeMillis(); 1429 System.err.println("; phase 2 (draw): " + (timeFinished - timePhase1) + " ms; total: " + (timeFinished - timeStart) + " ms"); 1430 } 1431 1413 1432 drawVirtualNodes(data, bbox); 1414 1433 } -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r7033 r7043 154 154 /** --debug Print debugging messages to console */ 155 155 DEBUG(false), 156 /** --trace Print detailed debugging messages to console */ 157 TRACE(false), 156 158 /** --language=<language> Set the language */ 157 159 LANGUAGE(true), … … 318 320 } 319 321 320 if (args.containsKey(Option.DEBUG)) { 322 if (args.containsKey(Option.DEBUG) || args.containsKey(Option.TRACE)) { 321 323 // Enable JOSM debug level 322 324 logLevel = 4; 323 325 // Enable debug in OAuth signpost 324 326 Preferences.updateSystemProperty("debug", "true"); 325 Main.debug(tr("Print debugging messages to console")); 327 Main.info(tr("Printing debugging messages to console")); 328 } 329 330 if (args.containsKey(Option.TRACE)) { 331 // Enable JOSM debug level 332 logLevel = 5; 333 Main.info(tr("Enabled detailed debug level (trace)")); 326 334 } 327 335
Note:
See TracChangeset
for help on using the changeset viewer.