ivoanjo / gvl-tracing

Get a timeline view of Global VM Lock usage in your Ruby app
MIT License
114 stars 7 forks source link

Feature/improvement brainstorming #13

Open ivoanjo opened 1 year ago

ivoanjo commented 1 year ago

I've spent some time thinking about potential improvements to gvl-tracing, and decided to record it here. If anyone's interested in tackling them, feel free to ask for details!

benoittgt commented 1 year ago

For the test do you have something in mind? I thought about something simple base on examples folder + partial match of the output. More like integration testing.

Love this menu.

ivoanjo commented 1 year ago

Yes, I was thinking along those lines of having small code blocks to try to exercise the gem with something that produces only a few events, and then parse the output and see if it looks reasonable.

benoittgt commented 1 year ago

Also another idea, will be to script the examples generation + json compacting.

ivoanjo commented 1 year ago

Also another idea, will be to script the examples generation + json compacting.

+1 Yeah, that would be cool as indeed right now whenever we change something the examples can become outdated.

ivoanjo commented 1 year ago

Updated list of tasks now that #12 and #14 fix some of them :)

ivoanjo commented 9 months ago

Added reference to https://github.com/ruby/ruby/pull/8885 since we can use it to solve the thread reuse issue :)

jpcamara commented 8 months ago

Hi there 🙋🏻‍♂️! I'll be submitting some PRs to:

Should have at least the specs up in the next day or so.

ivoanjo commented 8 months ago

THAT IS AMAZING AND I CAN'T WAIT!

I'll add the caveat that I moved houses the past weekend and I may take a bit to review stuff, but I definitely want to :)

jpcamara commented 8 months ago

THAT IS AMAZING AND I CAN'T WAIT!

I'll add the caveat that I moved houses the past weekend and I may take a bit to review stuff, but I definitely want to :)

Haha understandable! I'm sure it'll take me a bit to get everything through anyways. Good luck with the post-move tasks 🫡

jpcamara commented 8 months ago

First PR for specs, including a bug fix for the block form of start: https://github.com/ivoanjo/gvl-tracing/pull/15 🎉. It only covers Ruby 3.2 atm, Ruby 3.3 will be upcoming.

jpcamara commented 8 months ago

I haven't lost sight of the 3.3 updates btw! I'm finishing up some work on MN thread support for Mac in Ruby (https://github.com/ruby/ruby/pull/9178) then I'll open a 3.3 PR here

ivoanjo commented 8 months ago

Sounds great :bow:!

ivoanjo commented 4 months ago

Updated list of ideas after 1.5.0 release! :)