Scrubbing recording data by datetime
Yasumasa Suenaga
suenaga at oss.nttdata.com
Sat Oct 4 02:02:40 UTC 2025
Hi all,
I want to propose to add a feature to scrub recording data by datetime in `jfr scrub` command.
CSR of `jfr scrub` [1] says a possibility to dump the last 30 seconds for later analysis. I completely agree with this use case, but `jfr scrub` hasn't yet had a feature to scrub recording data to datetime. Currently we can scrub recording data by thread, event, and categories. However it is more useful if all of contents which emitted in the time window we want to focus especially the analyst doesn't know what happened yet.
I think we can add both `--start` and `--end` commandline option to `jfr scrub` command for this purpose.
Implementation POV, I think we can implement it easily with `RecordingFile::write` API.
I think it needs CSR because to add new commandline options to `jfr` command, so I want to hear your comments before to work.
Thanks,
Yasumasa
[1] https://bugs.openjdk.org/browse/JDK-8271585
More information about the hotspot-jfr-dev
mailing list