RFR: 8271232: JFR: Scrub recording data [v3]
Gunnar Morling
duke at openjdk.java.net
Wed Feb 23 13:16:56 UTC 2022
On Wed, 23 Feb 2022 12:55:58 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
>> That makes sense. Would you be open for a contribution by someone else (i.e. me) for the time-based filtering, once this initial work has been merged?
>
> Changes to command line options require a CSR request and updating the documentation. I might as well do it when I fix other related issues, but it would be interesting to better understand the use case.
>
> JFR.dump have four options, "begin", "end", "maxsize" and "maxage". Option "begin" and "end" accepts a timestamp but it can also be relative time, for example "begin=-30m", to dump the last 30 minutes, or you can do "maxage=30m". It's possible to do combinations. For example, begin ="2022-02-23T12:49:54.913875Z" maxsize=100M to have a 100 MB before a particular timestamp.
>
> Not sure if that is what we want?
I think "begin"/"end" with timestamps would suffice. One could provide both, so to get a slice from the middle of a recording, or just one, getting either the first part up to "end", or the last part, starting at "begin".
-------------
PR: https://git.openjdk.java.net/jdk/pull/7548
More information about the hotspot-jfr-dev
mailing list