changeset 5195:145c3b420819

RT-33147: 8.0-b107: performance logger is broken Summary: The problem was that the sun.perflog is a String, not a boolean Reviewed-by: kcr
author snorthov
date Thu, 26 Sep 2013 17:57:10 -0400
parents 1ee95ccfc4f9
children 5137e3d135ee
files modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PerformanceTrackerHelper.java modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PerformanceTrackerHelper.java	Thu Sep 26 13:59:56 2013 -0700
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PerformanceTrackerHelper.java	Thu Sep 26 17:57:10 2013 -0400
@@ -54,7 +54,7 @@
                     @Override
                     public PerformanceTrackerHelper run() {
                         try {
-                            if (PrismSettings.perfLog) {
+                            if (PrismSettings.perfLog != null) {
                                 final PerformanceTrackerHelper trackerImpl =
                                         new PerformanceTrackerDefaultImpl();
 
--- a/modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java	Thu Sep 26 13:59:56 2013 -0700
+++ b/modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java	Thu Sep 26 17:57:10 2013 -0400
@@ -83,7 +83,7 @@
     public static final boolean disableEffects;
     public static final int glyphCacheWidth;
     public static final int glyphCacheHeight;
-    public static final boolean perfLog;
+    public static final String perfLog;
     public static final boolean perfLogExitFlush;
     public static final boolean perfLogFirstPaintFlush;
     public static final boolean perfLogFirstPaintExit;
@@ -343,7 +343,7 @@
          * Performance Logger flags
          * Enable the performance logger, print on exit, print on first paint etc.
          */
-        perfLog = getBoolean(systemProperties, "sun.perflog", false, true);
+        perfLog = systemProperties.getProperty("sun.perflog");
         perfLogExitFlush = getBoolean(systemProperties, "sun.perflog.fx.exitflush", false, true);
         perfLogFirstPaintFlush = getBoolean(systemProperties, "sun.perflog.fx.firstpaintflush", false, true);
         perfLogFirstPaintExit = getBoolean(systemProperties, "sun.perflog.fx.firstpaintexit", false, true);