bin/generate-report in heap-profiler-0.1.0 vs bin/generate-report in heap-profiler-0.2.0
- old
+ new
@@ -1,10 +1,11 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/setup'
require "heap-profiler"
require 'fileutils'
+require 'date'
class SomeCustomStuff
end
$freed_objects = [+"i am free", +"i am free too"]
@@ -20,9 +21,10 @@
$retained_objects = [
+"I am retained",
+"I am retained",
+"I am retained too",
SomeCustomStuff.new,
+ Date.today,
]
"I am a very very long string " * 4
[
+"I am allocated",
+"I am allocated too",