[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Integrated: 8314029: Add file name parameter to Compiler.perfmap
From:       Yi-Fan Tsai <duke () openjdk ! org>
Date:       2023-12-18 15:23:54
Message-ID: WfaLNbI_Tg14cced2Y6IakoPEbR17Ce8VMDez1MzUh8=.661a6459-f37c-4536-80d8-2e138a2b1089 () github ! com
[Download RAW message or body]

On Thu, 21 Sep 2023 20:43:56 GMT, Yi-Fan Tsai <duke@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@amazon.com>
Committer: Paul Hohensee <phh@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic