GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rbspy/rbspy: Sampling CPU profiler for Ruby

BranchesTags
Open more actions menu

Latest commit

 

History

1,087 Commits
1,087 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github/workflows
.github/workflows
 
 
ci
ci
 
 
examples
examples
 
 
logo
logo
 
 
ruby-structs
ruby-structs
 
 
src
src
 
 
xtask
xtask
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTORS.md
CONTRIBUTORS.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
License.md
License.md
 
 
NEW_RUBY_VERSION_CHECKLIST.md
NEW_RUBY_VERSION_CHECKLIST.md
 
 
README.md
README.md
 
 
RELEASE_CHECKLIST.md
RELEASE_CHECKLIST.md
 
 
config.toml
config.toml
 
 

Repository files navigation

rbspy

crates.io ci

Have a running Ruby program that you want to profile without restarting it? Want to profile a Ruby command line program really easily? You want rbspy! rbspy can profile any Ruby program just by running 1 simple command.

rbspy lets you profile Ruby processes that are already running. You give it a PID, and it starts profiling. It's a sampling profiler, which means it's low overhead and safe to run in production.

rbspy lets you record profiling data, save the raw profiling data to disk, and then analyze it in a variety of different ways later on.

Documentation

=> https://rbspy.github.io

Requirements

rbspy supports Linux*, Mac, Windows, and FreeBSD.

* kernel version 3.2+ required. For Ubuntu, this means Ubuntu 12.04 or newer.

Add a testimonial

Did rbspy help you make your program faster? An awesome way to thank the project is to add a success story to this GitHub issue where people talk about ways rbspy has helped them! Hearing that rbspy is working for people is good motivation :)

Installing

Standalone binary

On Mac, you can install with Homebrew: brew install rbspy.

On Linux:

  1. Download recent release of rbspy from the GitHub releases page.
    • The binaries tagged with musl are statically linked against musl libc and can be used on most systems. The ones tagged with gnu are dynamically linked against GNU libc, so you will need it to be installed.
  2. Unpack it
  3. Move the rbspy binary to /usr/local/bin

Or have a look at Installing rbspy on our documentation.

As a Rust library

To use rbspy in your Rust project, add the following to your Cargo.toml:

[dependencies]
rbspy = "0.8"

WARNING: The rbspy crate's API is not stable yet. We will follow semantic versioning after rbspy reaches version 1.0.

Contributing

Pull requests that improve usability, fix bugs, or help rbspy support more operating systems are very welcome. If you have a question, the best way to ask is to create a GitHub issue!

If you're not a very experienced Rust programmer, you're very welcome to contribute. A major reason rbspy is written in Rust is that Rust is more approachable for beginners than C/C++. https://www.rust-lang.org/ has great resources for learning Rust.

Building rbspy

  1. Install cargo from crates.io
  2. cargo build to build
  3. cargo test to test

The built binary will end up at target/debug/rbspy

About

Sampling CPU profiler for Ruby

rbspy.github.io

Topics

cpuprofilersrubyrust

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

2.6k stars

Watchers

39 watching

Forks

107 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.