~/talk

Ruby Objects: A Walkabout

Talkat Ruby on Ales 2015 · 2015-03-05..03-06· [ruby]
slides:none on file

Uses the TracePoint API to count runtime events and produce JSON summaries via a small Rack middleware; a tiny Rack app instantiates 1 class, 1 method and 1 dispatch, a Sinatra hello world creates 43 classes, 155 methods and 548 dispatched calls, and a minimal Rails example shows 361 classes, ~1,200 methods and ~8,600 dispatches. Uses the ObjectSpace API and the allocation_tracer gem to measure rough memsize, flagging a line that allocates 10,004 objects and a multi-assignment that creates 5,000 arrays until the code is rewritten.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35About the speaker
  3. 5:58TracePoint overview
  4. 9:45TracePoint in practice
  5. 15:16ObjectSpace analysis
  6. 16:47Memory profiling
  7. 19:57Allocation tracer
  8. 27:06Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.