We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b863978 commit 9b92d0dCopy full SHA for 9b92d0d
msfconsole
@@ -27,13 +27,12 @@ if ENV['METASPLOIT_FRAMEWORK_PROFILE'] == 'true'
27
28
puts "Generating pdf"
29
30
- pdf_pathname = "#{profile_pathname}.pdf"
+ pdf_path = "#{profile_pathname}.pdf"
31
32
+ if Bundler.clean_system("pprof.rb --pdf #{profile_pathname} > #{pdf_path}")
33
+ puts "PDF saved to #{pdf_path}"
34
- if Bundler.clean_system("pprof.rb --pdf #{profile_pathname} > #{pdf_pathname}")
- puts "PDF saved to #{pdf_pathname}"
35
-
36
- system("open #{pdf_pathname}")
+ Rex::Compat.open_file(pdf_path)
37
end
38
}
39
0 commit comments