# About the Ruby Profiler Perspective [edit]

This Help topic gives an introduction to the Ruby Profiler Perspective that is included with the Pro version of Aptana RadRails.

## Introduction

RadRails 1.0 Pro includes a Profiling feature and plugin. This plugin adds a new Profiling perspective (shown below) that include new views that allow you to view CPU timing data and call graphs for launches of ruby applications.

## Instructions

### Installing the Ruby Profiler

The profiler plug-in is bundled with the ruby-prof gem, and you will be prompted to install this gem when you install the plug-in. (You can install this gem separately via the Rails Shell, RubyGems view, or command line.)

To install the profiler plugin:

1. Step 1
2. Step 2

### Running the Ruby profiler

To profile a ruby application, run the application under the profiler. To run the application under the profiler:

Right-click the file in the Ruby Editor or in the Ruby Explorer, and select Profile As > Ruby Application from the context menu (shown below).

This launches the script under the profiler. The Profiler will gather call graph and CPU timing information for the duration of the run. When the script exits, the profiler generates your results and automatically opens the Profiling perspective.

The Profiling perspective contains two Views to display profiling results:

- Call Graph View
- Hot Spots View

## Related Topics

- Using the Call Graph View
- Using the Hot Spots View

Retrieved from "http://aptana.com/docs/index.php/About_the_Ruby_Profiler_Perspective"

Categories: AptanaHelp | RadRails