Class JfrHtmlRulesReport
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.report.html.JfrHtmlRulesReport
-
public class JfrHtmlRulesReport extends Object
-
-
Constructor Summary
Constructors Constructor Description JfrHtmlRulesReport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreateReport(File jfrFile)Read a JFR file and create an HTML reportstatic StringcreateReport(InputStream stream)Read JFR data and create an HTML reportstatic StringcreateReport(IItemCollection events)Create an HTML report from the provided IItemCollectionstatic voidmain(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
createReport
public static String createReport(File jfrFile) throws 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 invalidIOException- if the JFR file can't be read
-
createReport
public static String createReport(InputStream stream) throws IOException, CouldNotLoadRecordingException
Read 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 invalidIOException- if the JFR file can't be read
-
createReport
public static 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
-
-