Powerstation is a tool that finds performance bugs in Rails applications, for example, API misuse, repeated query, etc.
There are two ways to use Powerstation:
As a RubyMine plugin that you can download from the jetbrains website. The source code is included in this repo under powerstation/IDE_plugin
.
As command line tool. The instructions and source code are included in this repo under powerstation/command_line_tool
.
Both of these uses a static code checker that we have built to detect performance issues. The source code of the checker is in static-checker
.
These are packaged in two separate branches (IDE_plugin
, static-checker
) in case you prefer checkout each part individually, for example:
$ git clone -b static-checker --single-branch https://github.com/hyperloop-rails/static-checker.git
Loop invariant queries
Dead store queries
Unused data-retrieval queries
Common sub-expression queries
API misuses
Inefficient data rendering
Details of these are explained in our documentation.
See our main website for more details. Feel free to submit issues and pull requests!