Lines Matching defs:Perf
34 * The Perf class provides the ability to attach to an instrumentation
49 * @see sun.misc.Perf$GetPerfAction
52 public final class Perf {
54 private static Perf instance;
59 private Perf() { } // prevent instantiation
63 * to the singleton Perf instance using the
72 * private static final Perf perf =
73 * AccessController.doPrivileged(new Perf.GetPerfAction<Perf>());
80 * <em>"sun.misc.Perf.getPerf"</em> <code>RuntimePermission</code>
81 * permission in order to successfully acquire the singleton Perf instance.
83 * Please note that the <em>"sun.misc.Perf.getPerf"</em> permission
89 public static class GetPerfAction implements PrivilegedAction<Perf>
92 * Run the <code>Perf.getPerf()</code> method in a privileged context.
96 public Perf run() {
102 * Return a reference to the singleton Perf instance.
104 * The getPerf() method returns the singleton instance of the Perf
111 * of <em>"sun.misc.Perf.getPerf"</em>. A security exception will result
114 * Access to the returned <code>Perf</code> object should be protected
123 * Please note that the <em>"sun.misc.Perf.getPerf"</em> permission
126 * @return A reference to the singleton Perf instance.
129 * access to the <em>"sun.misc.Perf.getPerf"</em> target.
133 public static Perf getPerf()
137 Permission perm = new RuntimePermission("sun.misc.Perf.getPerf");
537 instance = new Perf();