Class JfrHtmlRulesReport


  • public class JfrHtmlRulesReport
    extends java.lang.Object
    • Constructor Detail

      • JfrHtmlRulesReport

        public JfrHtmlRulesReport()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • getLogger

        private static java.util.logging.Logger getLogger()
      • createReport

        public static java.lang.String createReport​(java.io.File jfrFile)
                                             throws java.io.IOException,
                                                    CouldNotLoadRecordingException
        Read a JFR file and create an HTML report
        Parameters:
        jfrFile - JFR file to read
        Returns:
        a string with HTML
        Throws:
        CouldNotLoadRecordingException - if the JFR file is invalid
        java.io.IOException - if the JFR file can't be read
      • createReport

        public static java.lang.String createReport​(java.io.InputStream stream)
                                             throws java.io.IOException,
                                                    CouldNotLoadRecordingException
        Read JFR data and create an HTML report
        Parameters:
        stream - the InputStream with binary JFR data to read
        Returns:
        a string with HTML
        Throws:
        CouldNotLoadRecordingException - if the JFR file is invalid
        java.io.IOException - if the JFR file can't be read
      • createReport

        public static java.lang.String createReport​(IItemCollection events)
        Create an HTML report from the provided IItemCollection
        Parameters:
        events - the IItemCollection for which to produce an HTML report
        Returns:
        a string with HTML
      • loadResultGroups

        private static java.util.List<HtmlResultGroup> loadResultGroups()
      • createEmptyGroupsDocument

        private static org.w3c.dom.Document createEmptyGroupsDocument()
      • loadResultGroups

        private static java.util.List<HtmlResultGroup> loadResultGroups​(org.w3c.dom.Element element)