Giter Club home page Giter Club logo

jmtrace's Introduction

jmtrace

南京大学课程《软件工程研究导引》作业

功能:对给定jar包,记录其运行时所有memory access的信息

使用说明

Dependency

lib/asm-9.2.jar

可从https://repository.ow2.org/nexus/content/repositories/releases/org/ow2/asm/asm/9.2/ 下载

Build

进入项目目录下,执行

$ make 

即可在当前目录生成out目录和jmtrace.jar、

同时实现了 make cleanmake install

Run

jmtrace是一个脚本,内容为

#!/bin/bash
java -javaagent:jmtrace.jar -jar $1

使用方法:

jmtrace test.jar

样例输出:

W 1 728938a9 Test.id
W 1 6438a396 int[0]
R 1 6438a396 int[0]
W 1 6438a396 int[1]
R 1 6438a396 int[1]
W 1 6438a396 int[2]
R 1 6438a396 int[2]
W 1 6438a396 int[3]
R 1 6438a396 int[3]
W 1 6438a396 int[4]
W 1 728938a9 Test.id
W 1 e2144e4 Test.o

jmtrace's People

Contributors

absoler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.