jvmti

Crates.iojvmti
lib.rsjvmti
version0.5.0
sourcesrc
created_at2021-01-13 06:48:00.74834
updated_at2022-10-12 01:59:50.425901
descriptionJVM TI Rust binding
homepage
repositoryhttps://github.com/robberphex/jvmti-rust.git
max_upload_size
id341253
size404,866
Robert Lu (robberphex)

documentation

https://github.com/robberphex/jvmti-rust

README

jvmti-rust

An extensible, safe native JVM agent implemented in pure Rust.

A word of warning

This project is far from being complete or usable to say the least and contains a healthy dose of proof-of-concept code that is guaranteed to either work or not.

Abstract

Rust JVMTI is intended to become a slim JVM application performance management (APM) tool leveraging both safe access to native JVM functionality via Rust and byte code instrumentation using Java code.

Already implemented (probably poorly)

  • Ability to connect to a JVM as a native agent library
  • Read and parse loaded class files
  • Generate byte code from loaded or created class files
  • Gathering and displaying statistics about method class, class loading and synchronization times
  • Read basic command line configuration
  • Basic JVM emulator for implementing unit tests without the need for an actual JVM

Usage

Please see the example.

Commit count: 148

cargo fmt