Skip to content
Permalink
Browse files

Normalize paths in reports from `memory_profiler`

  • Loading branch information...
ashmaroli committed Jun 28, 2019
1 parent c76996c commit c87f5fa7fae28f8dba90ee67336f73ca56ec99e6
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit c87f5fa

Please sign in to comment.
You can’t perform that action at this time.