Git Product home page Git Product logo

stackwall's Introduction

Static StackOverflow Analysis for Android

Stackwall is a static tool that takes your StackOverflowError and APK and finds out which parts of your application are using the most stack space.

Getting Started

You will need a Java11 or higher JVM to run Stackwall. Stackwall currently has no releases, so you'll need to build it yourself. This situation will hopefully improve soon.

  1. Clone the repository
  2. ./gradlew assemble
  3. Unpack the archive file in build/distributions
  4. Run ./bin/stackwall <application.apk> <stackoverflow.txt>

StackOverflow files are simply plain text files containing the stack-trace of the StackOverflowError your are looking to analise. This is most typically in the standard Java format:

java.lang.StackOverflowError
    at android.view.View.getDrawableState(View.java:11556)
    at android.widget.TextView.onDraw(TextView.java:4863)
    at android.view.View.draw(View.java:10983)
    at android.view.View.getDisplayList(View.java:10422)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.draw(View.java:10986)
    at android.view.View.getDisplayList(View.java:10422)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.getDisplayList(View.java:10420)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.getDisplayList(View.java:10420)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.getDisplayList(View.java:10420)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.draw(View.java:10986)
    at android.widget.FrameLayout.draw(FrameLayout.java:450)
    at android.widget.ScrollView.draw(ScrollView.java:1524)
    at android.view.View.getDisplayList(View.java:10422)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
    at android.view.View.draw(View.java:10986)
    at android.widget.FrameLayout.draw(FrameLayout.java:450)
    at android.view.View.getDisplayList(View.java:10422)

Other StackOverflow Formats

Stackwall should be able to read most StackOverflowError traces (plain, ADB logs, etc), if you find a variant that isn't understood, please open a Pull Request or log an Issue and be sure to include a test and full example.

TODO

Stackwall is still in a very early phase of development, these are major outstanding issues that need to be addressed:

  1. build / test / release process
  2. an index of platform methods to count against
  3. verify and improve the accuracy of the output (currently it's a best-guess)
  4. command-line options
  5. more test coverage

stackwall's People

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.