Skip to content

An jvm agent library that counts the number of executed java bytecode instructions during a program run.

Notifications You must be signed in to change notification settings

jgf/bytecode_counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATTENTION: Eventually adjust Makefile to your environment. It may work for OSX
and ubuntu linux without adjustments.

This project contains a jvm agent library that can be used to count the number
of java bytecode instructions that are executed during a certain program run.
It displays the results on a per method basis. This has been used to check
the impact of compiletime optimizations to the bytecode in the context of a
compiler course at the Karlstuhe Institute of Technology.

Be aware that running a jvm with this agent library attached results in a
heavy slowdown, due to massive callbacks and a disabled jit compiler.

- make
    Builds jvm agent library for the instruction counter 'libcounter.(jnilib|so)'.
- make test
    Build classes needed for a testrun.
- make run-test
    Runs the testcase java program and counts the executed instructions.
- make clean
    Cleans up intermediate compilation results.
- make clean-all
    Cleans up all generated files.

This program is written by Juergen Graf <juergen.graf@gmail.com>.

About

An jvm agent library that counts the number of executed java bytecode instructions during a program run.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published