Enhance thread rendering/filtering for heatmaps & flamegraphs generated by jfrconverter
Describe the feature
Currently a user needs to use the "--threads" flag to include thread infomation in heatmaps & flamegraphs generated by the jfrconverter
jfrconv file.jfr file.html
After which if the user wants to filter in/out specific threads the --include --exclude flags are to be used
jfrconv file.jfr file.html --include {THREAD_NAME}
While this is helpful it's not that user friendly, as such I would suggested adding a filter on the flamegraph/heatmap JS/HTML side to quickly include/exclude specific threads, this filter can be a multi-select to quickly add/remove specific threads from the rendered graphs,
So a user can use jfrconv file.jfr file.html --threads after which the user can proceed to add/remove threads on the fly from the html via a newly created multi select button with all available threads ids/names rather than needing to do that manually or via CLI,
Use Case
Improve user experience when using flamegraph/heatmap with --threads
Proposed Solution
Create a multi-select button when --threads is used to easily remove/add threads from the rendering
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Source: async-profiler/async-profiler