summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2014-08-10 12:19:45 -0700
committerAliaksey Kandratsenka <alk@tut.by>2014-11-02 18:29:55 -0800
commit2e5ee0488996437aeef2028ad95d969b56abcad1 (patch)
treeb98b72380e998b695f72f1c0b9ce15cd3116dcee
parent6efe96b41c9531f68f806faa0464445f884178ce (diff)
downloadgperftools-2e5ee0488996437aeef2028ad95d969b56abcad1.tar.gz
pprof: indicate if using remote profile
Missing profile file is common source of confusion. So a bit more clarify is useful.
-rwxr-xr-xsrc/pprof1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pprof b/src/pprof
index 719e859..7b38c22 100755
--- a/src/pprof
+++ b/src/pprof
@@ -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;