From 4b4391ec600caa1c85d671a7eb45e0d5a1cc1bf1 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Tue, 2 Jul 2019 15:59:51 +0530 Subject: [PATCH] Update profile_memory task * Profile rougifying `sample` string instead of `source` string * Print report with all paths normalized --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 8bdf68e6be..bef8630afb 100644 --- a/Rakefile +++ b/Rakefile @@ -53,9 +53,9 @@ task :profile_memory do require 'rouge' formatter = Rouge::Formatters::HTML.new lexer = Rouge::Lexers::Ruby.new - formatter.format(lexer.lex(source)) + formatter.format(lexer.lex(sample)) end - print_options = { :scale_bytes => true } + print_options = { scale_bytes: true, normalize_paths: true } if ENV['CI'] report.pretty_print(print_options)