Class JfrHtmlRulesReport
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.report.html.JfrHtmlRulesReport
-
public class JfrHtmlRulesReport extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJfrHtmlRulesReport.SimpleResultGroupprivate static classJfrHtmlRulesReport.SimpleResultProvider
-
Constructor Summary
Constructors Constructor Description JfrHtmlRulesReport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static org.w3c.dom.DocumentcreateEmptyGroupsDocument()static java.lang.StringcreateReport(java.io.File jfrFile)Read a JFR file and create an HTML reportstatic java.lang.StringcreateReport(java.io.InputStream stream)Read JFR data and create an HTML reportstatic java.lang.StringcreateReport(IItemCollection events)Create an HTML report from the provided IItemCollectionprivate static java.util.logging.LoggergetLogger()private static java.util.List<HtmlResultGroup>loadResultGroups()private static java.util.List<HtmlResultGroup>loadResultGroups(org.w3c.dom.Element element)static voidmain(java.lang.String[] args)
-
-
-
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, CouldNotLoadRecordingExceptionRead 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 invalidjava.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, CouldNotLoadRecordingExceptionRead JFR data and create an HTML report- Parameters:
stream- theInputStreamwith binary JFR data to read- Returns:
- a string with HTML
- Throws:
CouldNotLoadRecordingException- if the JFR file is invalidjava.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- theIItemCollectionfor 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)
-
-