# tmm1/perftools.rb

gperftools for ruby code

Repository: https://github.com/tmm1/perftools.rb
Canonical: https://ross.abutalabs.com/products/perftoolsrb
Homepage: http://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html#pprof
Language: C
License Family: other
Last push: 2020-07-23T16:02:39+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6304, "days_push": 2232, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1025, forks 60 (observed 2026-08-28T04:03:16.631605+00:00)

## What it is
A Ruby binding to Google's gperftools that provides CPU profiling of Ruby code via sampling. It supports profiling blocks, whole applications via RUBYOPT, and reporting in text, gif, pdf, and callgrind formats.

## Use cases
- profile cpu usage of a ruby application
- find slow methods in a rails request
- profile object allocations in ruby code
- generate callgrind output for kcachegrind
- profile a ruby app without modifying its code

## When to choose
- you need low-overhead sampling CPU profiling for Ruby
- you want walltime, allocation, or method-call profiling modes
- you want pprof/callgrind-compatible reports

## When to avoid
- you need a maintained profiler for modern Ruby versions
- you need memory/heap profiling rather than CPU sampling
- you are not working in Ruby

## Facets
- artifact type: library
- maturity: maintenance
- function: benchmarking, monitoring, developer-tools
- domain: developer-tools, performance, programming-languages
- platform: ruby, cli
- tags: profiling, cpu-profiler, gperftools, ruby-gem, sampling-profiler, linux, macos

## Member repositories
- tmm1/perftools.rb (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:16.631605+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:08:05.693986+00:00, confidence not recorded.
  - readme: https://github.com/tmm1/perftools.rb (fetched 2026-08-28T04:03:16.631605+00:00, sha 5d21f826a805)
- Data as of 2026-08-30T08:39:29.467469+00:00.
