Changeset 1277 in josm for trunk/src/org
- Timestamp:
- 2009-01-17T15:01:20+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r1276 r1277 921 921 showIcons = Main.pref.getInteger("mappaint.showicons", 100000); 922 922 useStrokes = Main.pref.getInteger("mappaint.strokes", 100000); 923 923 LatLon ll1 = nc.getLatLon(0,0); 924 LatLon ll2 = nc.getLatLon(100,0); 925 dist = ll1.greatCircleDistance(ll2); 926 924 927 long profilerStart = java.lang.System.currentTimeMillis(); 925 928 long profilerLast = profilerStart; … … 929 932 (useStyleCache ? "cache=true, " : "cache=false, ") + 930 933 "fillareas " + fillAreas + ", " + 931 "fillalpha=" + fillAlpha + "%)"); 934 "fillalpha=" + fillAlpha + "%, " + 935 "dist=" + (int)dist + "m)"); 932 936 933 937 getSettings(virtual); … … 954 958 profilerVisibleSegments = 0; 955 959 956 LatLon ll1 = nc.getLatLon(0,0);957 LatLon ll2 = nc.getLatLon(100,0);958 dist = ll1.greatCircleDistance(ll2);959 System.out.format("Circum : %4f Dist: %f\n", circum, dist);960 961 960 if(profiler) 962 961 { 963 System.out.format("Prepare : % 4dms\n", (java.lang.System.currentTimeMillis()-profilerLast));962 System.out.format("Prepare : %5dms\n", (java.lang.System.currentTimeMillis()-profilerLast)); 964 963 profilerLast = java.lang.System.currentTimeMillis(); 965 964 } … … 981 980 if(profiler) 982 981 { 983 System.out.format("Relations: % 4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);982 System.out.format("Relations: %5dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 984 983 profilerLast = java.lang.System.currentTimeMillis(); 985 984 } … … 1003 1002 if(profiler) 1004 1003 { 1005 System.out.format("Areas : % 4dms, calls=%7d, visible=%d\n",1004 System.out.format("Areas : %5dms, calls=%7d, visible=%d\n", 1006 1005 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleAreas); 1007 1006 profilerLast = java.lang.System.currentTimeMillis(); … … 1019 1018 if(profiler) 1020 1019 { 1021 System.out.format("Ways : % 4dms, calls=%7d, visible=%d\n",1020 System.out.format("Ways : %5dms, calls=%7d, visible=%d\n", 1022 1021 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleWays); 1023 1022 profilerLast = java.lang.System.currentTimeMillis(); … … 1038 1037 if(profiler) 1039 1038 { 1040 System.out.format("Ways : % 4dms, calls=%7d, visible=%d\n",1039 System.out.format("Ways : %5dms, calls=%7d, visible=%d\n", 1041 1040 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleWays); 1042 1041 profilerLast = java.lang.System.currentTimeMillis(); … … 1058 1057 if(profiler) 1059 1058 { 1060 System.out.format("Selected : % 4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);1059 System.out.format("Selected : %5dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 1061 1060 profilerLast = java.lang.System.currentTimeMillis(); 1062 1061 } … … 1077 1076 if(profiler) 1078 1077 { 1079 System.out.format("Nodes : % 4dms, calls=%7d, visible=%d\n",1078 System.out.format("Nodes : %5dms, calls=%7d, visible=%d\n", 1080 1079 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleNodes); 1081 1080 profilerLast = java.lang.System.currentTimeMillis(); … … 1099 1098 if(profiler) 1100 1099 { 1101 System.out.format("Virtual : % 4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);1100 System.out.format("Virtual : %5dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 1102 1101 profilerLast = java.lang.System.currentTimeMillis(); 1103 1102 } … … 1108 1107 if(profiler) 1109 1108 { 1110 System.out.format("Segments : calls=%7d, visible=%d\n", profilerSegments, profilerVisibleSegments);1111 System.out.format("All : % 4dms\n", (profilerLast-profilerStart));1109 System.out.format("Segments : calls=%7d, visible=%d\n", profilerSegments, profilerVisibleSegments); 1110 System.out.format("All : %5dms\n", (profilerLast-profilerStart)); 1112 1111 } 1113 1112 }
Note:
See TracChangeset
for help on using the changeset viewer.