Skip to content

plasma-umass/accelerant

Repository files navigation

Accelerant

Setup

  1. Git clone
  2. Make and activate virtualenv
  3. Install from requirements.txt
  4. Run cd perfparser && maturin develop -r
  5. To fix perf debuginfo issues: cargo install addr2line --features="bin"

Basic usage

In one terminal, activate the virtualenv and run:

$ flask --app=accelerant_server run

In another terminal, build your program with optimizations on and debuginfo enabled, and then profile it with perf using something like the following:

$ perf record -F99 --call-graph dwarf ./your-program

Then, run:

$ curl 'http://127.0.0.1:5000/optimize?project=PATH_TO_PROJECT_ROOT&perfDataPath=ABSOLUTE_PATH_TO_PERF_DATA'

Alternatively, you can ask to optimize a specific line without perf information using the following:

$ curl 'http://127.0.0.1:5000/optimize?project=PATH_TO_PROJECT_ROOT&filename=RELATIVE_PATH_TO_FILE_IN_PROJECT&line=LINE_NUMBER_IN_FILE'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •