https://github.com/yjl9903/jmtrace
Trace Java memory access
https://github.com/yjl9903/jmtrace
bytecode java javassist memory trace
Last synced: 8 months ago
JSON representation
Trace Java memory access
- Host: GitHub
- URL: https://github.com/yjl9903/jmtrace
- Owner: yjl9903
- Created: 2021-11-25T13:22:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T16:31:33.000Z (over 3 years ago)
- Last Synced: 2025-01-31T20:07:46.681Z (8 months ago)
- Topics: bytecode, java, javassist, memory, trace
- Language: Kotlin
- Homepage:
- Size: 159 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jmtrace
Trace Java memory access.
## Installation
Build Jmtrace.
```bash
./gradlew build fatJar
```For Windows users, you can add `path\to\jmtrace\bin` to your PATH environment variable. Also, you can add the following config to your PowerShell `$PROFILE` file (like `.bashrc` in Linux). It will also register the command `jmtrace` globally.
```powershell
Set-Alias -Name jmtrace -Value "path\to\jmtrace\bin\jmtrace.ps1"
```For Linux / macOS users, you can append `path/to/jmtrace/bin` directory to PATH environment variable in `.bashrc`.
## Usage
```text
$ jmtrace --help
Usage: jmtrace options_list
Arguments:
args -> Args for running jar (optional) { String }
Options:
--jar, -jar -> Input jar package (always required) { String }
--verbose, -v [false] -> Enable verbose Log
--help, -h -> Usage info
```