Misleading warning
akimd opened this issue · comments
Akim Demaille commented
Hi,
I have lost quite some time because of these messages:
NOTE: RubyProf.profile is deprecated; use Profile.profile instead. It will be removed on or after 2023-06.
So I believed that RubyProf was replaced by some other Profile
gem. It took quite some time to understand that the message should actually read
NOTE: RubyProf.profile is deprecated; use RubyProf::Profile.profile instead. It will be removed on or after 2023-06.
That may save other people's time.
Cheers.
Charlie Savage commented
Sure, that works.
Kuba Suder commented
So if calling RubyProf.start
etc. is deprecated, does that mean the documentation at https://ruby-prof.github.io is outdated? Because the "convenience API" section there all uses RubyProf directly...
Charlie Savage commented
Yes, the docs need to be updated.