MountainWest RubyConf 2014 - New Ruby 2.1 Awesomeness: Pro Object Allocation Tracing

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=ViUvz4FCDxg



Duration: 26:54
374 views
3


By Sam Rawlins

Ruby 2.1 is coming out soon with an amazing new feature under ObjectSpace: #trace_object_allocations. We are now able to trace the file and line number (as well as method) where any Ruby object is allocated from. This is a very welcome feature, as object-level tracing has been very difficult in Ruby, especially since the memprof gem could not support Ruby past 1.8.x.
This new Ruby 2.1 feature is really just exposing some raw (and vast) data, so it can be difficult to tease out meaningful information. Two gems are introduced in this talk to solve just that problem. The objspace-stats gem allows us to view and summarize new object allocations in meaningful ways. We'll look at how to filter, group, and sort new object allocations. The second gem is rack-objspace-stats. We'll see how this tool can intercept requests to a Rack stack, and measure new object allocations taking place during the request. (For those familiar, this works very similar to the rack-perftools_profiler gem.)
We'll look at various examples of how this new Ruby 2.1 feature, and these tools can help an organization reduce unnecessary memory allocations, and speed up their code, especially mature Rack applications.

Help us caption & translate this video!

http://amara.org/v/FG2j/




Other Videos By Confreaks


2014-04-23MountainWest RubyConf 2014 - The Timeless Way of Building by John Athayde
2014-04-23MountainWest RubyConf 2014 - Test Driven Neural Networks with Ruby by Matthew Kirk
2014-04-23MountainWest RubyConf 2014 - A World Without Assignment by Aja Hammerly
2014-04-23MountainWest RubyConf 2014 - Five machine learning techniques that....
2014-04-23MountainWest RubyConf 2014 - Affordance in Programming Languages by Randy Coulman
2014-04-22MountainWest RubyConf 2014 - Dont. by Ernie Miller
2014-04-22MountainWest RubyConf 2014 - Big O in a Homemade Hash by Nathan Long
2014-04-22MountainWest RubyConf 2014 - Re-thinking Regression Testing by Mario Gonzalez
2014-04-22MountainWest RubyConf 2014 - Unpacking Technical Decisions by Sarah Mei
2014-04-22MountainWest RubyConf 2014 - The Other Junk Drawer: My Tests are a Mess
2014-04-22MountainWest RubyConf 2014 - New Ruby 2.1 Awesomeness: Pro Object Allocation Tracing
2014-04-22MountainWest RubyConf 2014 - Introduction to CRuby source code by Andy Pliszka
2014-04-22MountainWest RubyConf 2014 - Generate Parsers! Prevent Exploits! by Nick Howard
2014-04-22MountainWest RubyConf 2014 - A Magical Gathering by Aaron Patterson
2014-04-22EmberConf 2014 Mr Router Embraces the Controller by Alex Matchneer
2014-04-21EmberConf 2014 The {{x-foo}} in You by Ryan Florence
2014-04-21EmberConf 2014 Convergent/Divergent by Christopher Meiklejohn
2014-04-21EmberConf 2014 Software Productivity and Ember: Ember CLI by Stef Penner
2014-04-21EmberConf 2014 Ember is for the Children by DeVaris Brown
2014-04-19MountainWest Devops 2014 - Automating cloud factories and the internet assembly line with SaltStack
2014-04-19MountainWest Devops 2014 - Introduction to Docker by James Turnbull