src/java.desktop/share/classes/sun/awt/util/PerformanceLogger.java

Print this page
rev 13431 : 8146735: Move sun.misc.PerformanceLogger to sun.awt.util
Reviewed-by: alanb, mchung, rriggs


   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 
  28 package sun.misc;
  29 
  30 import java.util.Vector;
  31 import java.io.FileWriter;
  32 import java.io.File;
  33 import java.io.OutputStreamWriter;
  34 import java.io.Writer;
  35 
  36 /**
  37  * This class is intended to be a central place for the jdk to
  38  * log timing events of interest.  There is pre-defined event
  39  * of startTime, as well as a general
  40  * mechanism of setting arbitrary times in an array.
  41  * All unreserved times in the array can be used by callers
  42  * in application-defined situations.  The caller is responsible
  43  * for setting and getting all times and for doing whatever
  44  * analysis is interesting; this class is merely a central container
  45  * for those timing values.
  46  * Note that, due to the variables in this class being static,
  47  * use of particular time values by multiple applets will cause
  48  * confusing results.  For example, if plugin runs two applets




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 
  28 package sun.awt.util;
  29 
  30 import java.util.Vector;
  31 import java.io.FileWriter;
  32 import java.io.File;
  33 import java.io.OutputStreamWriter;
  34 import java.io.Writer;
  35 
  36 /**
  37  * This class is intended to be a central place for the jdk to
  38  * log timing events of interest.  There is pre-defined event
  39  * of startTime, as well as a general
  40  * mechanism of setting arbitrary times in an array.
  41  * All unreserved times in the array can be used by callers
  42  * in application-defined situations.  The caller is responsible
  43  * for setting and getting all times and for doing whatever
  44  * analysis is interesting; this class is merely a central container
  45  * for those timing values.
  46  * Note that, due to the variables in this class being static,
  47  * use of particular time values by multiple applets will cause
  48  * confusing results.  For example, if plugin runs two applets