• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 15 years ago
  • Updated over 15 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Rails metal handler for analyzing your processes' memory usage.

Scrap is a Rails Metal endpoint designed to expose various garbage and memory-related metrics about your app. It may be particularly useful in tracking down memory leaks.

To use it, simply install the plugin. This will provide a new url, /stats/scrap, which will report a number of metrics about your app.

For an example of the output, see http://tachyonsix.com/scrap.htm

Config

If present, Scrap will use a config/scrap.yml file. See the provided example file for a list of the configuration options accepted.

  • max requests: How many requests to keep a record of. Older requests will be pushed out of the queue when the limit has been reached. Default is 150.
  • max_objects: How many objects/deltas to show. Default is 50.
  • classes: A hash of class names to do object counting on. Values may be "true" which prints the object count with a default set of options, or it may be a hash consisting of the following:
    • print_objects: boolean - toggles the output of a representation of each instance of the type.
    • show_fields: array - list of fields to show per instance. This actually invokes the "attributes" method of the object, so it's really only useful for ActiveRecord objects.
    • small: boolean - if false, will not print counts in h3 tags. Default is true.
    • min: integer - minimum count, if set, that an object must have to appear in the delta or top objects list. Default is nil.

Other considerations

Scrap will take advantage of many of the wonderful metrics provided by recent versions of Ruby Enterprise Edition. It will work with other versions of Ruby, but you'll get a lot more info out of it if you're running REE 1.8.6-20090201 or later.

More Repositories

1

sd-webui-loractl

An Automatic1111 extension for dynamically controlling the weights of LoRAs during image generation
Python
60
star
2

shadowcraft-ui

WoW 7.0 web-based Spreadsheet
JavaScript
56
star
3

manticore

Manticore is a JRuby HTTP client built on the Apache HttpClient 4.x components
Ruby
54
star
4

floatingFixed

Simple jQuery plugin to simplify toggling an element between fixed and absolute positioning based on window scroll
JavaScript
51
star
5

murmur-manager

Manage your Mumble/Murmur server via DBus and Ice in Ruby.
Ruby
44
star
6

jabberish

A Rails plugin that provides a DRb server and singleton object for sending IMs via Jabber (including Google Talk) from a Rails application
Ruby
35
star
7

srp-bill-calculator

Compute your power bill on APS & SRP's various billing plans
Ruby
27
star
8

site_config

site_config is a fire-and-forget environment-specific site configuration plugin for Rails apps
Ruby
17
star
9

clickhax

Clickhax is a fire-and-forget click heatmap solution built on node.js and mongodb. Experimental.
JavaScript
15
star
10

redis-slave-read

Allows for automatically-distributed slave reads to a redis cluster
Ruby
12
star
11

jcarousel-lite

jCarousel Lite is a jQuery plugin that carries you on a carousel ride filled with images and HTML content. Put simply, you can navigate images and/or HTML in a carousel-style widget. It is super light weight, at about 2 KB in size, yet very flexible and customizable to fit most of our needs.
JavaScript
12
star
12

tarot

Tarot is a quick, simple, and easy-to-use configuration library for Rails apps
Ruby
9
star
13

Comps

Comps is a Chrome extension designed to help you match design comps perfectly by overlaying them onto your working webpage.
CoffeeScript
9
star
14

dxvk-docker

Docker image to build DXVK from master and optionally install it to Lutris
Shell
8
star
15

asana-cli

asana-cli
Ruby
7
star
16

warcraftlogs-parses

Data and experiments in analyzing WarcraftLogs parses by encounter, spec, and item level
Ruby
6
star
17

AuctionBoss

AuctionBoss is a data collection and analysis package for the WoW Auction House
Ruby
6
star
18

FlexAuth

Flexibile authentication for Battle.net on Android platforms
Java
5
star
19

better_assets

better_assets is a Rails 2.3.2 plugin that enhances some of the asset tag helpers for awesomeifaction of your project.
Ruby
5
star
20

NetflixNavigator

Chrome extension to let you navigate Netflix with your gamepad
CoffeeScript
5
star
21

multi-taggable

A twisted tagging plugin for group tagging
Ruby
4
star
22

search_terms

A simple Rails plugin that makes it easy to extract search terms from your referrer
Ruby
3
star
23

kong-rpm-spec

RPM build specs for Kong + OpenResty + Luarocks + Serf
Shell
3
star
24

wp_fasterquery

Simple plugin to make your WP post queries not suck
PHP
2
star
25

aws-ssh-profile-generator

Generate ssh configs and portable KiTTY session profiles from AWS
HTML
2
star
26

faster_pathname

faster_pathname is a set of performance monkeypatches on the Ruby stdlib Pathname
Ruby
2
star
27

abingo

A fork of A/Bingo designed to work with MongoMapper and MongoDB rather than ActiveRecrod.
Ruby
2
star
28

sexycooldown

Github mirror for the SexyCooldown WoW addon
Lua
1
star
29

locbot

LocBot is an IRC bot that provides geolocation services using the MaxMind GeoCityLite databases
Ruby
1
star
30

jquery-simpledialog

Fork of Yusuke Horie's jquery-simpledialog, as permitted under its MIT licensing.
1
star
31

WorldQuestAssistant

WQA is a simple addon which helps you find groups for world quests more easily
Lua
1
star
32

sentry-mattermost-integration

Bridge to convert Sentry integration messages into Mattermost webhook messages
Go
1
star
33

SunSpider-deadcode

JavaScript
1
star
34

TriggerBot

An IRC bot for fun and games
JavaScript
1
star
35

KDE-Region-Screenshot

Simple helper which uses Spectacle and xclip to take a screenshot region direct to the clipboard, in the style of GNOME and OS X
Shell
1
star