Integrated: 8314029: Add file name parameter to Compiler.perfmap
Yi-Fan Tsai
duke at openjdk.org
Mon Dec 18 15:23:54 UTC 2023
On Thu, 21 Sep 2023 20:43:56 GMT, Yi-Fan Tsai <duke at openjdk.org> wrote:
> `jcmd Compiler.perfmap` uses the hard-coded file name for a perf map: `/tmp/perf-%d.map`. This change adds an optional argument for specifying a file name.
>
> `jcmd PID help Compiler.perfmap` shows the following usage.
>
>
> Compiler.perfmap
> Write map file for Linux perf tool.
>
> Impact: Low
>
> Syntax : Compiler.perfmap [<filename>]
>
> Arguments:
> filename : [optional] Name of the map file (STRING, no default value)
>
>
> The following section of man page is also updated. (`man -l src/jdk.jcmd/share/man/jcmd.1`)
>
>
> Compiler.perfmap [arguments] (Linux only)
> Write map file for Linux perf tool.
>
> Impact: Low
>
> arguments:
>
> · filename: (Optional) Name of the map file (STRING, no default value)
>
> If filename is not specified, a default file name is chosen using the pid of the target JVM process. For example, if the pid is 12345, then
> the default filename will be /tmp/perf-12345.map.
This pull request has now been integrated.
Changeset: a5122d7f
Author: Yi-Fan Tsai <yftsai at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a5122d7f6c36a4c98ea4bea7a7c8081e2a4dadca
Stats: 56 lines in 6 files changed: 37 ins; 3 del; 16 mod
8314029: Add file name parameter to Compiler.perfmap
Reviewed-by: cjplummer, eastigeevich
-------------
PR: https://git.openjdk.org/jdk/pull/15871
More information about the serviceability-dev
mailing list