Skip to content

Commit

Permalink
Added ruby 3.3 metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
aroop committed Dec 31, 2023
1 parent e052358 commit d586e53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
## [0.1.0] - 2021-02-24

- Initial release

## [0.2.2] - 2021-02-25

- Added support for ruby 3.3 metrics
5 changes: 5 additions & 0 deletions lib/yabeda/gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ module GC

gauge :time, tags: [], comment: "The total time spent in garbage collections" if RUBY_VERSION >= "3.1"

if RUBY_VERSION >= "3.3"
gauge :marking_time, tags: [], comment: "Time spent in the marking phase"
gauge :sweeping_time, tags: [], comment: "Time spent in the sweeping phase"
end

collect do
stats = ::GC.stat

Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/gc/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Yabeda
module GC
VERSION = "0.2.1"
VERSION = "0.2.2"
end
end

0 comments on commit d586e53

Please sign in to comment.