Normalize paths in reports from `memory_profiler`

This commit is contained in:
Ashwin Maroli 2019-06-28 09:01:06 +05:30 committed by GitHub
parent c76996cd8e
commit c87f5fa7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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