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 class
JfrHtmlRulesReport.SimpleResultGroup
private static class
JfrHtmlRulesReport.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.Document
createEmptyGroupsDocument()
static java.lang.String
createReport(java.io.File jfrFile)
Read a JFR file and create an HTML reportstatic java.lang.String
createReport(java.io.InputStream stream)
Read JFR data and create an HTML reportstatic java.lang.String
createReport(IItemCollection events)
Create an HTML report from the provided IItemCollectionprivate static java.util.logging.Logger
getLogger()
private static java.util.List<HtmlResultGroup>
loadResultGroups()
private static java.util.List<HtmlResultGroup>
loadResultGroups(org.w3c.dom.Element element)
static void
main(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, 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 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, CouldNotLoadRecordingException
Read JFR data and create an HTML report- Parameters:
stream
- theInputStream
with 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
- theIItemCollection
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)
-
-