From c87f5fa7fae28f8dba90ee67336f73ca56ec99e6 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Fri, 28 Jun 2019 09:01:06 +0530 Subject: [PATCH] Normalize paths in reports from `memory_profiler` --- rake/profile.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rake/profile.rake b/rake/profile.rake index d58c470b..d8c0f4ef 100644 --- a/rake/profile.rake +++ b/rake/profile.rake @@ -39,7 +39,7 @@ namespace :profile do end if ENV["CI"] - report.pretty_print(scale_bytes: true, color_output: false) + report.pretty_print(scale_bytes: true, color_output: false, normalize_paths: true) else FileUtils.mkdir_p("tmp") report_file = File.join("tmp", args.file) @@ -50,7 +50,7 @@ namespace :profile do Jekyll.logger.info "Total allocated: #{total_allocated_output} (#{report.total_allocated} objects)".cyan Jekyll.logger.info "Total retained: #{total_retained_output} (#{report.total_retained} objects)".cyan - report.pretty_print(to_file: report_file, scale_bytes: true) + report.pretty_print(to_file: report_file, scale_bytes: true, normalize_paths: true) Jekyll.logger.info "\nDetailed Report saved into:", report_file.cyan end end