On Tue, 20 Jan 2026 15:50:26 GMT, Ivan Bereziuk <[email protected]> wrote:
> `jcmd` provides great diagnostics but many commands lack a timestamp in their > output. > Adding a timestamp to the output of some would add value for those debugging > JVM data. > > With this MR I propose to introduce time-stamping to all diagnostic `jcmd` > commands in a form of an additional common flag "-t": > > jcmd [pid | main-class] [-t] command... | PerfCounter.print | -f filename > ^^^^ > > > This is a simplified approach to handle timestamp (v1 is > [here](https://github.com/openjdk/jdk/pull/27368)) > > Some diagnostic commands already provide timestamps information. For example > `Thread.print` already starts with a timestamp of "yyyy-MM-dd HH:mm:ss" > format. > In that case the timestamp is printed twice if "-t" flag is passed to > `Thread.print`. > > The time format for the generic timestamp is ISO 8601. Example: > `2026-01-21T16:58:49.518+0100` This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/29325
