pprof: indicate if using remote profile

Missing profile file is common source of confusion. So a bit more
clarify is useful.
This commit is contained in:
Aliaksey Kandratsenka 2014-08-10 12:19:45 -07:00
parent 6efe96b41c
commit 2e5ee04889

View File

@ -516,6 +516,7 @@ sub Init() {
# Remote profiling without a binary (using $SYMBOL_PAGE instead)
if (@ARGV > 0) {
if (IsProfileURL($ARGV[0])) {
printf STDERR "Using remote profile at $ARGV[0].\n";
$main::use_symbol_page = 1;
} elsif (IsSymbolizedProfileFile($ARGV[0])) {
$main::use_symbolized_profile = 1;