Class AsyncProfiler.JavaApi

  • Enclosing class:
    AsyncProfiler

    public static final class AsyncProfiler.JavaApi
    extends java.lang.Object
    • Field Detail

      • ignoredThreadStates

        private static java.util.EnumSet<java.lang.Thread.State> ignoredThreadStates
    • Constructor Detail

      • JavaApi

        private JavaApi​(java.lang.String libraryFileName)
      • JavaApi

        private JavaApi()
    • Method Detail

      • execute

        public java.lang.String execute​(java.lang.String command)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • filterThread

        public void filterThread​(java.lang.Thread thread,
                                 boolean enable)
        Enable or disable profile collection for threads.
        Parameters:
        thread - The thread to enable or disable. null indicates the current thread.
        enable - Whether to enable or disable.
      • start0

        private void start0​(java.lang.String event,
                            long interval,
                            boolean reset)
                     throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • stop0

        private void stop0()
                    throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • execute0

        private java.lang.String execute0​(java.lang.String command)
                                   throws java.lang.IllegalArgumentException,
                                          java.io.IOException
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException
      • getSamples

        private long getSamples()
      • filterThread0

        private void filterThread0​(java.lang.Thread thread,
                                   boolean enable)