]> git.cworth.org Git - apitrace/commitdiff
Rename dump -> tracedump.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 15 Apr 2011 08:34:20 +0000 (09:34 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 15 Apr 2011 08:45:51 +0000 (09:45 +0100)
Dump is a too generic name to be, for example, in /usr/bin/.

.gitignore
CMakeLists.txt
README
dump.cpp [deleted file]
scripts/tracediff.sh
tracedump.cpp [new file with mode: 0644]

index 0a45575493087a80731e9f1b84b35ccd042d36e5..cdd2823e2e126800af46bac36d29251704dffdd3 100644 (file)
@@ -28,12 +28,12 @@ d3d10_1.cpp
 d3d8.cpp
 d3d9.cpp
 ddraw.cpp
-dump
 dxsdk
 glproc.hpp
 glretrace
 glretrace_gl.cpp
 glretrace_state.cpp
 glxtrace.cpp
+tracedump
 traces
 wgltrace.cpp
index 19ef467f9f8ecfb911b9d91b66924bd378be68fb..fefd34949ef4986547c7132843f460f2934868a1 100644 (file)
@@ -209,8 +209,8 @@ endif (WIN32)
 
 add_library (trace trace_model.cpp trace_parser.cpp ${os})
 
-add_executable (dump dump.cpp)
-target_link_libraries (dump trace)
+add_executable (tracedump tracedump.cpp)
+target_link_libraries (tracedump trace)
 
 add_custom_command (
     OUTPUT glretrace_gl.cpp
diff --git a/README b/README
index 8091a414d68f72bafde79f6a7e48d3928be14f10..8fc78a1d6c9b167ccb5b84532b325eddc62bb867 100644 (file)
--- a/README
+++ b/README
@@ -89,7 +89,7 @@ http://www.cmake.org/Wiki/CmakeMingw for detailed instructions.
 
 * View the trace with
 
- /path/to/dump application.trace
+ /path/to/tracedump application.trace
 
 * Replay the trace with
 
@@ -105,7 +105,7 @@ http://www.cmake.org/Wiki/CmakeMingw for detailed instructions.
 
 * View the trace with
 
- /path/to/dump application.trace
+ /path/to/tracedump application.trace
 
 * Replay the trace with
 
diff --git a/dump.cpp b/dump.cpp
deleted file mode 100644 (file)
index 22f62e3..0000000
--- a/dump.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/**************************************************************************
- *
- * Copyright 2010 VMware, Inc.
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- *
- **************************************************************************/
-
-
-/*
- * Simple utility to dump a trace to standard output.
- */
-
-
-#include "trace_parser.hpp"
-
-
-int main(int argc, char **argv)
-{
-    for (int i = 1; i < argc; ++i) {
-        Trace::Parser p;
-        if (p.open(argv[i])) {
-            Trace::Call *call;
-            call = p.parse_call();
-            while (call) {
-                std::cout << *call;
-                delete call;
-                call = p.parse_call();
-            }
-        }
-    }
-    return 0;
-}
index 95ec5d23795bacfd20e8b0dbfda930454b2c957e..01f383403c7af1999e820d1bb15037522d8cc6a2 100755 (executable)
 
 set -e
 
-DUMP=${DUMP:-`dirname "$0"`/dump}
+TRACEDUMP=${TRACEDUMP:-`dirname "$0"`/tracedump}
 
-$DUMP
+$TRACEDUMP
 
 stripdump () {
     # http://www.theeggeadventure.com/wikimedia/index.php/Linux_Tips#Use_sed_to_remove_ANSI_colors
-    $DUMP "$1" \
+    $TRACEDUMP "$1" \
     | sed \
         -e 's/\x1b\[[0-9]\{1,2\}\(;[0-9]\{1,2\}\)\{0,2\}m//g' \
         -e 's/\r$//g' \
diff --git a/tracedump.cpp b/tracedump.cpp
new file mode 100644 (file)
index 0000000..22f62e3
--- /dev/null
@@ -0,0 +1,50 @@
+/**************************************************************************
+ *
+ * Copyright 2010 VMware, Inc.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ *
+ **************************************************************************/
+
+
+/*
+ * Simple utility to dump a trace to standard output.
+ */
+
+
+#include "trace_parser.hpp"
+
+
+int main(int argc, char **argv)
+{
+    for (int i = 1; i < argc; ++i) {
+        Trace::Parser p;
+        if (p.open(argv[i])) {
+            Trace::Call *call;
+            call = p.parse_call();
+            while (call) {
+                std::cout << *call;
+                delete call;
+                call = p.parse_call();
+            }
+        }
+    }
+    return 0;
+}