java 字节码注入_byteman: Byteman 是一个Java字节码注入工具,用以简化 Java 应用程序的测试和开发,使用名为 fault injection 的技术。通过在应用代码中注入脚...

Byteman README

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

Byteman supports injection of side effects into Java programs for the

purpose of tracing and testing application behaviour.

Installation

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

When you unzip the downloaded release it will explode to a single

target install directory containing everything you need to

use byteman. You should set environment variable BYTEMAN_HOME so

that it points to this target install directory.

The install directory for the binary release contains the following

subdirectories

bin -- contains Unix scripts to simplify: using Byteman (bmjava.sh);

typechecking Byteman rule scripts (bytemancheck.sh);

communicating with the Byteman agent listener (bmsubmit.sh);

and installing the agent into a running JVM (bminstall.sh).

You will need to change the permissions of these files

in order to execute them directly from the command line.

docs -- contains the Byteman Programmer's guide and license

information for Byteman plus the third-party software it uses

lib -- contains the Byteman agent and rule engine (byteman.jar);

the subset of this code needed to compile/run the submit

client (byteman-submit.jar); the subset of this code needed

to compile/run the install client (byteman-install.jar).

sample/scripts -- contains example rule scripts showing how to

use Byteman

sample/lib -- contains helper code for the sample scripts

contrib -- contains software contributed by other Byteman users

see the README in each contrib subdirectory for details of

how to use the package

The install directory for the full source release contains all the

above directories plus the following extra directories

sources -- contains source code jars for each of the component

jars in lib, sample/lib, contrib/dtest and contrib/bmunit

javadoc -- contains javadoc format documentation jars for each of

the component jars in lib, sample/lib, contrib/dtest and

contrib/bmunit

Using Byteman

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

Access to the Byteman project downloads, documentation, user and

developer forums and source code is available from the project

home page at http://www.jboss.org/byteman

Please consult the Programmer's Guide for details of how Byteman

operates, how to write Byteman rule scripts and how to run a Java

program with the Byteman agent in place.

Take a look at the sample scripts directory to see some examples of

how you can use Byteman to trace application and JVM execution or

to gather and present statistics detailing the operation of JVM

or application code.

(n.b. these examples still need extending to show how to use Byteman

for fault injection based testing).

Copyright

---------

See the copyright file in the docs directory for details of the open

source license under which this code is released. Note that this code

employs the ObjectWeb ASM package to do bytecode manipulation and the

JFlex and JavaCUP tokeniser and parser generators to generate and

provide runtime support for the rule parser which are also released

under open source licenses.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值