Coder Social home page Coder Social logo

dynamic-sequence-diagrams's Introduction

dynamic-sequence-diagrams

Creates a sequence diagram based on a program execution

Warning: This is just a prototype. It's purpose is to try out Javas' instrumentation capabilities and javaassist. It therefore does not have any automated tests and is not supposed to be stable.

Build

Download the source and create the jar using gradle:

./gradlew jar

This will create a jar in build/libs/CallGraph-1.0.jar.

Usage

When executing your java code pass the CallGraph jar as a java agent and specify the package you want to have analyzed in the package parameter:

java -javaagent:CallGraph-1.0.jar="package=com/your/project" -classpath path/to/your/application.jar com.your.project.MainClass```

This creates a sequence.txt file that describes the sequence diagram. You can now paste the content of that file to https://www.websequencediagrams.com/.

dynamic-sequence-diagrams's People

Contributors

ybonjour avatar

Stargazers

 avatar Jazz Yao-Tsung Wang avatar Chris Feuz avatar Flurin Ineichen avatar

Watchers

Flurin Ineichen avatar  avatar James Cloos avatar

dynamic-sequence-diagrams's Issues

Non default constructor not working

Code which calls a non default constructor causes a java.lang.VerifyError in the sequence diagram generator.

Exception in thread "main" java.lang.VerifyError: (class: ch/frickler/Frickler, method: <init> signature: (Ljava/lang/String;)V) Expecting to find object/array on stack

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.