From bbcc39e66c6d29205314676fcbf7fbea4bb1138f Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 14 May 2019 18:00:59 +1000 Subject: [PATCH] FEATURE: update mini_racer to version including heap dump support We recently noticed a leak, this introduces a new method on MiniRacer::Context ``` context.write_heap_snapshot(path) ``` To dump current memory in v8 context to a file, this can then be analyzed in chrome and other similar tools Can be triggered in production using rbtrace --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index c86851b9040..2675a94c15b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -181,7 +181,7 @@ GEM method_source (0.9.2) mini_mime (1.0.1) mini_portile2 (2.4.0) - mini_racer (0.2.5) + mini_racer (0.2.6) libv8 (>= 6.9.411) mini_scheduler (0.9.2) sidekiq