]> git.cworth.org Git - apitrace/commitdiff
trim: Print a warning message when doing dependency analysis.
authorCarl Worth <cworth@cworth.org>
Fri, 17 Aug 2012 21:22:30 +0000 (14:22 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:36 +0000 (08:03 +0000)
As requested by José prior to merging this code upstream.

cli/cli_trim.cpp

index c2bb887c4c7ed0f239c1dd23589b15bf0ced07b6..080c131c9dc223f40f7d2deebbe7e511fe5ace7d 100644 (file)
@@ -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);
 }