diff options
author | Carl Worth <cworth@cworth.org> | 2013-03-21 16:01:25 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2013-04-12 14:30:38 -0700 |
commit | 991740f0ddb74addbdccef4ea42a883c77a62cee (patch) | |
tree | 6d432f52422d2a162bbbf2b25f143e5b2456b8b3 /cli/cli_trim.cpp | |
parent | a0931fd50d69c136535b2afbb53d129c30e404c5 (diff) |
trim: Enable dependency analysis (--auto) by default.
The --exact mode of trimming can be useful, but only if the user has
somehow performed all the dependency analysis needed manually, (such
as by extracting a list of calls from a previous run by
--print-callset). Since --exact inherently requires more care to be
used, it makes sense to also require an extra command-line option, and
to thus prefer the easier-to-use --auto mode by default.
Diffstat (limited to 'cli/cli_trim.cpp')
-rw-r--r-- | cli/cli_trim.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/cli_trim.cpp b/cli/cli_trim.cpp index d7568449..4a116eee 100644 --- a/cli/cli_trim.cpp +++ b/cli/cli_trim.cpp @@ -82,12 +82,14 @@ help() " --deps Perform dependency analysis and include dependent\n" " calls as needed, (even if those calls were not\n" " explicitly requested with --calls or --frames).\n" + " (On by default. See --no-deps or --exact)\n" " --no-deps Do not perform dependency analysis. Output will\n" " not include any additional calls beyond those\n" " explicitly requested with --calls or --frames).\n" "\n" " --prune Omit calls with no side effects, even if the call\n" " is within the range specified by --calls/--frames.\n" + " (On by default. See --no-prune or --exact)\n" "\n" " --no-prune Never omit any calls from the range specified\n" " --calls/--frames.\n" @@ -96,7 +98,8 @@ help() " of uninteresting calls the resulting trace may\n" " include more and less calls than specified.\n" " This option is equivalent\n" - " to passing both --deps and --prune.\n" + " to passing both --deps and --prune and is on by\n" + " default (see --no-deps, --no-prune and --exact)\n" "\n" " --exact Trim output to exact the calls or frames\n" " specified with --calls or --frames.\n" @@ -370,8 +373,8 @@ command(int argc, char *argv[]) options.calls = trace::CallSet(trace::FREQUENCY_NONE); options.frames = trace::CallSet(trace::FREQUENCY_NONE); - options.dependency_analysis = false; - options.prune_uninteresting = false; + options.dependency_analysis = true; + options.prune_uninteresting = true; options.output = ""; options.thread = -1; options.print_callset = 0; |