Devchat.tv Episode Roundup
Devchat.tv Episode Roundup
Devchat.tv
RR 383: “Rbspy: A New(ish) Ruby Profiler!” with Julia Evans
45 minutes Posted Oct 9, 2018 at 10:00 am.
– Julia gives her background.
– Chuck: You’ve been on the show before. Listeners, go check it out!
– What is Ruby Spy?
– Julia: I wanted to know WHY my computer was doing what it was doing. I felt that it was my right, so I wrote that program.
– Julia: This does have these profiling tools in Java. I thought it was unfair that Java had better tools than Ruby. I figured Ruby should have it, too.
– Chuck talks about tools and Ruby Spy.
– Julia recommends it.
– Chuck: some people say that it has affected their performance.
– Julia: Ruby Spy is a separate process.
– When would you use something like this, and what kind of data would get you back to debug the slow points.
– Julia: When you run Ruby Spy it will...
– Chuck: Does it give you method names?
– Julia: Yes, 20% in this method or...
– I can see how that would be helpful on certain aspects. Being able to narrow down the 1,000 methods where you cab get your biggest bang for your buck.
– Julia comments.
– Chuck: I know people pay for Relic...
– Chuck: When it tells you which method is taking a long time, will it look at the stack and THIS method is insufficient b/c this other method is insufficient? How does it do that?
– Julia answers the questions.
– Chuck: I’d imagine that it could keep anything in memory. Did you have to do a bunch of work where THAT means THAT?
– Julia answers.
– Julia goes through the different ways the versions are different.
– Panelist asks a question.
– Julia: It doesn’t care – as long as you are using the Ruby Interpreter.
– Chuck: Sometimes my performance issues is Ruby, and sometimes it’s the database. For Ruby it will sit there and wait for IO. Is that a blind spot that you will have in Ruby Spy?
– Julia: Great question. There are 2 ways to do profiling.
– Wall Clock Time.
– Chuck: Your computer has a speed and however long it takes to run one cycle. It is similar, but...
– I guess as long as it’s relative – I was looking at these graphs you wrote.
– Julia.
– Panelist: That has been my issue. Changing context into a profiler...
– Julia.
– Chuck: Do you have to run it through something...?
– Julia.
– Chuck: Is that the most effective way to look at the data through Ruby Spy?
– Julia: I twill show you the output as it is profiling. 2 visualizations: flame graph and...
– Chuck.
– Julia: It is the only visualization that I know of.
– Chuck: I don’t know.
– Julia: You have spent this amount of % to...
– Chuck: What are you looking at in the flame graph?
– Guest: Basically what time was spent in that function. You look at what is big, and then you figure out if that is something to optimize or not. You go to the docs and...
– Jackal.
– Main problem that I would run into is the information OVERLOAD.
– Julia: It does give you everything. If you have a real serious problem often the answer will really jump out at you. What I would say – if something is really slow it is right there.
– Chuck: You will see the name of the method?
– Chuck: Any other information it will give you?
– Julia: The line number.
– Chuck asks another question.
– Chuck: Success stories?
– Julia: Yes, I do. GitHub – success stories.
– I can’t imagine using a Rail app that is over 10 years old. So much as changed! A lot of the documentation would be harder to find.
– Julia gives another example of a success story.
– When it goes to production – my brain turns off and get jittery. Figure out what happens in production and I wouldn’t want to guess for an app that couldn’t be down. This is what is happening right here and right now.
– Chuck: How do they get it out into production...
– Julia: Through GitHub that you can download. If you are on a Mac and your developing you can do it through Home Brew.
– Chuck and Julia go back and forth.
– Panelist: You don’t need to have it all the time, but a good tool.
– Julia: I want people to use it but not all the time; only when they need it.
– Panelist: I think on a lot of these scripts...
– Panelist asks her a question.
– Pie Spy is something else that someone wrote.
– Julia: Ruby Spy came first, and Pie Spy is inspired Ruby Spy. He did a good job building that.
– Advertisement – Code Badges
– People still use PHP?
– Julia: Yep!
– Chuck talks about his neighbor and how he raves about this feature or that feature.
– In PHP’s defense it has come a long way. I think they are at version 7 or version 8. Sounds like they did a lot of new things with the language.
– Julia: Instead of that or this language is better – what TOOLS can we use? I hear Ruby users make fun of Java, but Java has great tools. What can we learn from that language rather than bashing the other languages?
– Chuck chimes-in.
– Chuck: Let’s talk about that with the opensource.
– Julia talks about the opensource project.
– Julia: I asked my manager at Stripe to do this sabbatical in advance. I worked on it for 3 months. I got a check from Segment.
– Panelist adds in his comments and asks a question.
– Julia never used it.
– I have done a lot with Ruby Motion in the past. I am curious how that would work with Ruby Spy?
– IOS is pretty locked down, so I don’t think that would fly.
– Chuck talks about Ruby Motion and how he thinks Ruby Spy would / wouldn’t fit.
– What is funny about that, Chuck, is that you can ALT click...
– Chuck mentions another app.
– Julia.
– Chuck.
– Chuck: What else are you doing with Ruby Spy that is new?
– Julia: Not much.
– Panelist: Here is a suggestion, some kind of web server that you could...
– Great idea.
– Chuck: It wouldn’t be hard to embed it.
– Julia: Sharing it between...so we don’t have to build the same thing twice.
– Chuck and Julia go back-and-forth about Ruby Spy and Pie Spy,
– Julia: Pearl was my first language, and I still love it.
– Chuck: I guess I can’t knock it because I really haven’t tried it.
– Ruby was inspired by Pearl so there’s that.
– Chuck: How do people start using your tool? What is your advice?
– Julia: Yeah just try it and see. Install it through Home Brew if you have a Mac.
– Chuck: Picks!
– Advertisement – Get a Coder Job.
– Picks!
0:00
45:25
Download MP3
Show notes
Panel:
Charles Max Wood
Dave Kimura
David Richards
Special Guests: Julia Evans
In this episode of Ruby Rogues, the panel talks with Julia Evans who is a software engineer at Stripe and lives in Montreal, Quebec, Canada. The panel talks with Julia about her tool Ruby Spy among other topics. Check it out!
Show Topics:
Julia: You had to install the gem in order to use it.
Julia continues this conversation and goes in-depth of what Ruby Spy is, etc.
Julia: The differences weren’t that big between the different versions.
Is this meant for Ruby Scripts?
Julia explains these two ways.
How much time was spent in this function or that function?
I feel that the flame graph is much more helpful than a list of percentages.
Now you have the action controllers and all these other components that aren’t normally visual.
Panelist asks a question to Julia.
Julia gives us one of her success stories. This user said that it helped them by 30%.
Rails Panel – Panelist mentions this.
Dot.net.
It’s fun to see people come in to make contributions.
Links:
Get a Coder Job Course
Ruby Motion
Ruby on Rails
StackProf – GitHub
Ruby Spy
Rails_Panel – GitHub
Julia Evans’ Twitter
Julia Evans’ Blog
Julia Evans’ GitHub
Julia Evans’ LinkedIn
Sponsors:
Sentry
Digital Ocean
Get a Coder Job Course
Picks:
Dave
Vise
Deep Freeze
Charles
Elixir in Phoenix
Vue JS
Views on Vue
Side Projects
Doc McStuffins Headphones
David
Ed Lahey
Julia
Growing a Business
Notability App