Skip to content

schneems/heap-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not Very Good MRI Heap Analyzer

This is a Not Very Good heap analyzer for MRI. It is not very good.

You can see the current version here.

The Good Things

It processes MRI heap dumps in your browser.

After you upload your heap dump, it will it will show you a break down of:

  • Number of allocations per generation
  • Numbers of per type
  • Classes by memory size
  • Methods by allocation size
  • Gems by allocation size

uploaded

If you click a slice of the pie, it will show you all allocations for that type in the table below like this:

objects

If you click a row in the table, it will add a new table that lists the objects that point to the object you clicked.

references

Hovering over a row will show you the allocation location (if it's available): allocation location

You can use any heap dumps from ObjectSpace.dump_all, but the index file gives an example of dumping the heap for a Rails app.

The Not Very Good Things

It has bugs, so please send pull requests. It is slow, so please send pull requests. It doesn't look very good, so please send pull requests.

Also, please send pull requests.

TODO

Building the giant table is pretty slow, I would like to speed that up.

When you click a row to view the objects that point to that object, it inserts a new table. Unfortunately that is very slow and doesn't look very good. I'd like to fix both of those problems.

About

A heap analyzer for MRI that isn't very good.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.5%
  • HTML 38.5%