diff options
Diffstat (limited to 'simpleperf/cmd_report.cpp')
-rw-r--r-- | simpleperf/cmd_report.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/simpleperf/cmd_report.cpp b/simpleperf/cmd_report.cpp index a3f80948..29cf743a 100644 --- a/simpleperf/cmd_report.cpp +++ b/simpleperf/cmd_report.cpp @@ -307,13 +307,15 @@ class ReportCommand : public Command { "report", "report sampling information in perf.data", // clang-format off "Usage: simpleperf report [options]\n" +"The default options are: -i perf.data --sort comm,pid,tid,dso,symbol.\n" "-b Use the branch-to addresses in sampled take branches instead of the\n" " instruction addresses. Only valid for perf.data recorded with -b/-j\n" " option.\n" -"--brief-callgraph Print brief call graph.\n" "--children Print the overhead accumulated by appearing in the callchain.\n" "--comms comm1,comm2,... Report only for selected comms.\n" "--dsos dso1,dso2,... Report only for selected dsos.\n" +"--full-callgraph Print full call graph. Used with -g option. By default,\n" +" brief call graph is printed.\n" "-g [callee|caller] Print call graph. If callee mode is used, the graph\n" " shows how functions are called from others. Otherwise,\n" " the graph shows how functions call others.\n" @@ -363,7 +365,7 @@ class ReportCommand : public Command { callgraph_max_stack_(UINT32_MAX), callgraph_percent_limit_(0), raw_period_(false), - brief_callgraph_(false) {} + brief_callgraph_(true) {} bool Run(const std::vector<std::string>& args); @@ -445,8 +447,6 @@ bool ReportCommand::ParseOptions(const std::vector<std::string>& args) { for (size_t i = 0; i < args.size(); ++i) { if (args[i] == "-b") { use_branch_address_ = true; - } else if (args[i] == "--brief-callgraph") { - brief_callgraph_ = true; } else if (args[i] == "--children") { accumulate_callchain_ = true; } else if (args[i] == "--comms" || args[i] == "--dsos") { @@ -458,7 +458,8 @@ bool ReportCommand::ParseOptions(const std::vector<std::string>& args) { } std::vector<std::string> strs = android::base::Split(args[i], ","); filter.insert(strs.begin(), strs.end()); - + } else if (args[i] == "--full-callgraph") { + brief_callgraph_ = false; } else if (args[i] == "-g") { print_callgraph_ = true; accumulate_callchain_ = true; |