This PR adds blobs/nmethods/adapters stats per code heap in 
CodeCahe::print_summary:

CodeHeap 'non-profiled nmethods': size=118592Kb used=370Kb max_used=370Kb 
free=118221Kb
 bounds [0x00007f2093d3a000, 0x00007f2093faa000, 0x00007f209b10a000]
 blobs=397, nmethods=397, adapters=0, full_count=0
CodeHeap 'profiled nmethods': size=118592Kb used=2134Kb max_used=2134Kb 
free=116457Kb
 bounds [0x00007f208c109000, 0x00007f208c379000, 0x00007f20934d9000]
 blobs=1091, nmethods=1091, adapters=0, full_count=0
CodeHeap 'non-nmethods': size=8580Kb used=4461Kb max_used=4506Kb free=4118Kb
 bounds [0x00007f20934d9000, 0x00007f2093949000, 0x00007f2093d3a000]
 blobs=478, nmethods=0, adapters=387, full_count=0
CodeCache: size=245764Kb, used=6965Kb, max_used=7010Kb, free=238796Kb
 total_blobs=1966, nmethods=1488, adapters=387, full_count=0
Compilation: enabled, stopped_count=0, restarted_count=0


This information is useful for debugging CodeCache.

Testing: fastdebug, tier1-tier2 passed.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8307537: Print blobs/nmethods/adapters stats per code heap in 
CodeCache::print_summary

Changes: https://git.openjdk.org/jdk/pull/30803/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30803&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8307537
  Stats: 100 lines in 3 files changed: 50 ins; 5 del; 45 mod
  Patch: https://git.openjdk.org/jdk/pull/30803.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30803/head:pull/30803

PR: https://git.openjdk.org/jdk/pull/30803

Reply via email to