--- old/src/java.desktop/share/classes/sun/java2d/loops/DrawLine.java 2019-06-14 14:37:49.000000000 +0530 +++ new/src/java.desktop/share/classes/sun/java2d/loops/DrawLine.java 2019-06-14 14:37:48.000000000 +0530 @@ -104,8 +104,12 @@ public void DrawLine(SunGraphics2D sg2d, SurfaceData dest, int x1, int y1, int x2, int y2) { - tracePrimitive(target); + if ((traceflags & TRACEPTIME) == 0) { + tracePrimitive(target); + } + long time = System.nanoTime(); target.DrawLine(sg2d, dest, x1, y1, x2, y2); + tracePrimitiveTime(target, System.nanoTime() - time); } } }