Module: Datadog::Core::Environment::YJIT
- Defined in:
- lib/datadog/core/environment/yjit.rb
Overview
Reports YJIT primitive runtime statistics.
Class Method Summary collapse
- .available? ⇒ Boolean
-
.code_gc_count ⇒ Object
Code GC count.
-
.code_region_size ⇒ Object
Size of memory region allocated for JIT code.
-
.freed_code_size ⇒ Object
GCed code size.
-
.freed_page_count ⇒ Object
GCed pages.
-
.inline_code_size ⇒ Object
Inline code size.
-
.live_page_count ⇒ Object
Live pages.
-
.object_shape_count ⇒ Object
Total number of object shapes.
-
.outlined_code_size ⇒ Object
Outlined code size.
Class Method Details
.available? ⇒ Boolean
50 51 52 53 54 |
# File 'lib/datadog/core/environment/yjit.rb', line 50 def available? defined?(::RubyVM::YJIT) \ && ::RubyVM::YJIT.enabled? \ && ::RubyVM::YJIT.respond_to?(:runtime_stats) end |
.code_gc_count ⇒ Object
Code GC count
36 37 38 |
# File 'lib/datadog/core/environment/yjit.rb', line 36 def code_gc_count ::RubyVM::YJIT.runtime_stats[:code_gc_count] end |
.code_region_size ⇒ Object
Size of memory region allocated for JIT code
41 42 43 |
# File 'lib/datadog/core/environment/yjit.rb', line 41 def code_region_size ::RubyVM::YJIT.runtime_stats[:code_region_size] end |
.freed_code_size ⇒ Object
GCed code size
26 27 28 |
# File 'lib/datadog/core/environment/yjit.rb', line 26 def freed_code_size ::RubyVM::YJIT.runtime_stats[:freed_code_size] end |
.freed_page_count ⇒ Object
GCed pages
21 22 23 |
# File 'lib/datadog/core/environment/yjit.rb', line 21 def freed_page_count ::RubyVM::YJIT.runtime_stats[:freed_page_count] end |
.inline_code_size ⇒ Object
Inline code size
11 12 13 |
# File 'lib/datadog/core/environment/yjit.rb', line 11 def inline_code_size ::RubyVM::YJIT.runtime_stats[:inline_code_size] end |
.live_page_count ⇒ Object
Live pages
31 32 33 |
# File 'lib/datadog/core/environment/yjit.rb', line 31 def live_page_count ::RubyVM::YJIT.runtime_stats[:live_page_count] end |
.object_shape_count ⇒ Object
Total number of object shapes
46 47 48 |
# File 'lib/datadog/core/environment/yjit.rb', line 46 def object_shape_count ::RubyVM::YJIT.runtime_stats[:object_shape_count] end |
.outlined_code_size ⇒ Object
Outlined code size
16 17 18 |
# File 'lib/datadog/core/environment/yjit.rb', line 16 def outlined_code_size ::RubyVM::YJIT.runtime_stats[:outlined_code_size] end |