Sha256: e58e279478b7148af37a3a60f35b5ff9f5b5a0c36b5980cc94b0c24e4f0f062a
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module SpecSupport def benchmark(&block) require 'benchmark' puts "Benchmark:" puts Benchmark.measure(&block) end def profile_methods require 'method_profiler' profiler = MethodProfiler.observe(Wasabi::Parser) yield puts profiler.report end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.6.1 | spec/support/profiling.rb |
wasabi-3.6.0 | spec/support/profiling.rb |