module
Rubellite::Profiler
Overview
Profiling, telemetry, and bytecode/assembly disassembly comparing CRuby YARV VM execution against Spinel native compiled kernels.
Defined in:
rubellite/profiler.crClass Method Summary
-
.compare(iterations : Int32, ruby_action : -> Nil, spinel_action : -> Nil) : ProfileReport
Compares execution timing between a Ruby block/expression and a Spinel/Crystal action
-
.disasm_ruby(ruby_code : String) : String
Disassembles a Ruby code string into CRuby YARV bytecode instruction sequences
-
.profile_eval(ruby_code : String, spinel_proc : -> Nil, iterations : Int32 = 1000) : ProfileReport
Profiles a Ruby eval expression against a compiled Spinel/Crystal proc
Class Method Detail
def self.compare(iterations : Int32, ruby_action : -> Nil, spinel_action : -> Nil) : ProfileReport
#
Compares execution timing between a Ruby block/expression and a Spinel/Crystal action
Disassembles a Ruby code string into CRuby YARV bytecode instruction sequences
def self.profile_eval(ruby_code : String, spinel_proc : -> Nil, iterations : Int32 = 1000) : ProfileReport
#
Profiles a Ruby eval expression against a compiled Spinel/Crystal proc