You can export all reports and data to:
- HTML, optionally packing all generated files to a single ZIP archive
- CSV ("comma separated values") format
- Plain text format
Export from UI
Use File | Export to... (Ctrl+S) to export current view:
To export telemetry data, right-click a graph to invoke a popup menu:
"File | Copy To Clipboard..." (Ctrl+C or another platform specific shortcut) action copies text of selected row in all trees and lists.
Export with command line tool
You can automatically export some basic views using the following command:
java -jar <Profiler Installation Directory>/lib/yjp.jar -export <snapshot_file> <target_directory>
where:<snapshot_file> - path to snapshot file
<target_directory> - directory where resulting files (*.txt, *.csv, *.html) will be created;
the directory must exist when you issue the command.
Exported views
The following views can be exported:
- Class list - for memory snapshot
- Class loaders - for memory snapshot
- Method list (CPU) - if recorded
- Call tree (CPU) - if recorded
- Method list (allocations) - for memory snapshot, if allocations recorded
- Method list (garbage collection) - for memory snapshot, if allocations recorded
- Summary
By default, all the views are exported, if corresponding data is present in the snapshot.
To export only particular views, specify one or several of the following system properties:
export.class.listexport.class.loadersexport.method.list.cpuexport.call.tree.cpuexport.method.list.allocexport.method.list.gcexport.summary
If at least one of the properties is specified, only specified views will be exported. If none of the properties is specified, all available views will be exported.
Example:
-
java -Dexport.method.list.cpu -Dexport.class.list -jar /usr/yjp/lib/yjp.jar -export foo.snapshot out- export CPU method list and class list only -
java -jar /usr/yjp/lib/yjp.jar -export foo.snapshot out- export all available views
Export formats
By default, views are exported in each of applicable formats (CSV, text, HTML).
To export in only particular formats, specify one or several of the following system properties:
export.txtexport.htmlexport.csv
If at least one of the properties is specified, export will be performed in only specified format(s). If none of the properties is specified, export will be performed in all formats available for each of the views.
Example:
-
java -Dexport.method.list.cpu -Dexport.class.list -Dexport.txt -jar /usr/yjp/lib/yjp.jar -export foo.snapshot out- export CPU method list and class list only, and only as text -
java -Dexport.csv -jar /usr/yjp/lib/yjp.jar -export foo.snapshot out- export all available views, and only as CSV -
java -jar /usr/yjp/lib/yjp.jar -export foo.snapshot out- export all available views in all available formats
