Normalize paths in reports from `memory_profiler`
This commit is contained in:
parent
c76996cd8e
commit
c87f5fa7fa
|
@ -39,7 +39,7 @@ namespace :profile do
|
||||||
end
|
end
|
||||||
|
|
||||||
if ENV["CI"]
|
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
|
else
|
||||||
FileUtils.mkdir_p("tmp")
|
FileUtils.mkdir_p("tmp")
|
||||||
report_file = File.join("tmp", args.file)
|
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 allocated: #{total_allocated_output} (#{report.total_allocated} objects)".cyan
|
||||||
Jekyll.logger.info "Total retained: #{total_retained_output} (#{report.total_retained} 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
|
Jekyll.logger.info "\nDetailed Report saved into:", report_file.cyan
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue