]> git.cworth.org Git - apitrace/blobdiff - cli/cli_trim.cpp
s/UNINTERESTING/VERBOSE/
[apitrace] / cli / cli_trim.cpp
index c2bb887c4c7ed0f239c1dd23589b15bf0ced07b6..22340b23b40034c90e2d10b1b6816a1c06fe740f 100644 (file)
@@ -213,7 +213,7 @@ trim_trace(const char *filename, struct trim_options *options)
         }
 
         /* Also, prune if uninteresting (unless the user asked for no pruning. */
-        if (options->prune_uninteresting && call->flags & trace::CALL_FLAG_UNINTERESTING) {
+        if (options->prune_uninteresting && call->flags & trace::CALL_FLAG_VERBOSE) {
             goto NEXT;
         }
 
@@ -303,7 +303,7 @@ trim_trace(const char *filename, struct trim_options *options)
             printf ("-%d\n", call_range_last);
     }
 
-    std::cout << "Trimmed trace is available as " << options->output << "\n";
+    std::cerr << "Trimmed trace is available as " << options->output << "\n";
 
     return 0;
 }
@@ -387,6 +387,14 @@ command(int argc, char *argv[])
         return 1;
     }
 
+    if (options.dependency_analysis) {
+        std::cerr <<
+            "Note: The dependency analysis in \"apitrace trim\" is still experimental.\n"
+            "      We hope that it will be useful, but it may lead to incorrect results.\n"
+            "      If you find a trace that misbehaves while trimming, please share that\n"
+            "      by sending email to apitrace@lists.freedesktop.org, cworth@cworth.org\n";
+    }
+
     return trim_trace(argv[optind], &options);
 }