]> git.cworth.org Git - apitrace/blobdiff - cli/cli_trim.cpp
trim --prune: Look at FLAG_NO_SIDE_EFFECTS rather than FLAG_VERBOSE
[apitrace] / cli / cli_trim.cpp
index 5625a2c4f845ee2e0bccdba1cd24ed42c04b3ddb..b0cb8f167557fbe162b174a50ddf2610ce905b2b 100644 (file)
@@ -210,8 +210,8 @@ trim_trace(const char *filename, struct trim_options *options)
             goto NEXT;
         }
 
-        /* Also, prune if uninteresting (unless the user asked for no pruning. */
-        if (options->prune_uninteresting && call->flags & trace::CALL_FLAG_VERBOSE) {
+        /* Also, prune if no side effects (unless the user asked for no pruning. */
+        if (options->prune_uninteresting && call->flags & trace::CALL_FLAG_NO_SIDE_EFFECTS) {
             goto NEXT;
         }