CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 04 Aug 2025 05:26:23 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090401014002
location: https://web.archive.org/web/20090401014002/https://github.com/cheald/scrap/tree/
server-timing: captures_list;dur=1.049098, exclusion.robots;dur=0.034856, exclusion.robots.policy;dur=0.016540, esindex;dur=0.018615, cdx.remote;dur=94.225865, LoadShardBlock;dur=232.095119, PetaboxLoader3.datanode;dur=102.509806, PetaboxLoader3.resolve;dur=52.015817
x-app-server: wwwb-app225
x-ts: 302
x-tr: 381
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app225; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Mon, 04 Aug 2025 05:26:24 GMT
content-type: text/html; charset=utf-8
content-length: 108
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Wed, 01 Apr 2009 01:40:01 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090401014002/https://github.com/cheald/scrap/tree/master
x-archive-orig-x-runtime: 38ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 108
cache-control: max-age=1800
memento-datetime: Wed, 01 Apr 2009 01:40:02 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 30 Mar 2009 16:17:41 GMT", ; rel="prev memento"; datetime="Mon, 30 Mar 2009 16:17:41 GMT", ; rel="memento"; datetime="Wed, 01 Apr 2009 01:40:02 GMT", ; rel="next memento"; datetime="Mon, 01 Jun 2009 21:31:15 GMT", ; rel="last memento"; datetime="Mon, 01 Jun 2009 21:31:15 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090331220728_crawl100-c/52_8_20090401013827_crawl101.arc.gz
server-timing: captures_list;dur=0.554536, exclusion.robots;dur=0.020036, exclusion.robots.policy;dur=0.009241, esindex;dur=0.010129, cdx.remote;dur=425.849419, LoadShardBlock;dur=173.564903, PetaboxLoader3.datanode;dur=162.023686, PetaboxLoader3.resolve;dur=261.869585, load_resource;dur=352.184720
x-app-server: wwwb-app225
x-ts: 301
x-tr: 978
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 04 Aug 2025 05:26:25 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Wed, 01 Apr 2009 01:40:02 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 398ms
x-archive-orig-etag: "f00bc5806100e75c49db7b0ee602b27f"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 19397
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 01 Apr 2009 01:40:02 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 27 Mar 2009 12:07:30 GMT", ; rel="prev memento"; datetime="Mon, 30 Mar 2009 16:17:41 GMT", ; rel="memento"; datetime="Wed, 01 Apr 2009 01:40:02 GMT", ; rel="next memento"; datetime="Mon, 01 Jun 2009 21:31:15 GMT", ; rel="last memento"; datetime="Mon, 11 Dec 2023 13:34:28 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090331220728_crawl100-c/52_8_20090401013827_crawl101.arc.gz
server-timing: captures_list;dur=0.912091, exclusion.robots;dur=0.036307, exclusion.robots.policy;dur=0.017012, esindex;dur=0.019960, cdx.remote;dur=68.038480, LoadShardBlock;dur=313.749712, PetaboxLoader3.datanode;dur=140.308239, PetaboxLoader3.resolve;dur=434.980735, load_resource;dur=287.991608
x-app-server: wwwb-app225
x-ts: 200
x-tr: 735
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
cheald's scrap at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | A Rails metal handler for analyzing your processes' memory usage. |
Homepage: | https://www.coffeepowered.net/2009/03/24/announcing-scrap/ |
Clone URL: |
git://github.com/cheald/scrap.git
Give this clone URL to anyone.
git clone git://github.com/cheald/scrap.git
|

Chris Heald (author)
Wed Mar 25 16:19:13 -0700 2009
scrap /
name | age | message | |
---|---|---|---|
![]() |
LICENSE | Tue Mar 24 02:31:08 -0700 2009 | Initial commit. See readme for info. [Chris Heald] |
![]() |
README.markdown | Tue Mar 24 02:44:21 -0700 2009 | Cause markdown to link the example output [Chris Heald] |
![]() |
app/ | Wed Mar 25 16:19:13 -0700 2009 | Make the output document validate as HTML 4.01 ... [Chris Heald] |
![]() |
init.rb | Tue Mar 24 02:31:08 -0700 2009 | Initial commit. See readme for info. [Chris Heald] |
![]() |
sample.html | Tue Mar 24 02:31:08 -0700 2009 | Initial commit. See readme for info. [Chris Heald] |
![]() |
scrap.yml.example | Tue Mar 24 02:31:08 -0700 2009 | Initial commit. See readme for info. [Chris Heald] |
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 https://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.
This feature is coming soon. Sit tight!