dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
557 stars 112 forks source link

[Backport] 8254723: add diagnostic command to write Linux perf map file #745

Closed lusou-zhangquan closed 8 months ago

lusou-zhangquan commented 8 months ago

Summary: Support dumping text file format describing the mapping between address ranges and Java symbol names for Linux perf tool. There are two ways to trigger dumping:

  1. Launch java application with option -XX:+DumpPerfMapAtExit, the file will be generated automatically when application exits.
  2. Use command 'jcmd Compiler.perfmap' to trigger dump during application running.

Testing: test/hotspot/jtreg/serviceability/dcmd/compiler/PerfMapTest.java

Reviewers: kuaiwei.kw, denghui.ddh

Issue: https://github.com/dragonwell-project/dragonwell11/issues/744

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.