samples/fib.rb in ddmemoize-1.0.0a3 vs samples/fib.rb in ddmemoize-1.0.0rc1
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
require 'ddmemoize'
-DDMemoize.enable_telemetry
+DDMemoize.enable_metrics
class FibFast
DDMemoize.activate(self)
memoized def fib(n)
@@ -19,6 +19,6 @@
end
end
p FibFast.new.fib(1000)
-DDMemoize.print_telemetry
+DDMemoize.print_metrics