]> git.cworth.org Git - apitrace/commitdiff
s/TRACE_PATH/TRACE_FILE/
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 22 Apr 2011 11:34:22 +0000 (12:34 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 10:06:58 +0000 (11:06 +0100)
As "PATH" usually suggested search paths.

README
gui/saverthread.cpp
trace_write.cpp

diff --git a/README b/README
index 8fc78a1d6c9b167ccb5b84532b325eddc62bb867..fe8347b6c4bc984edd1a707ad26e7c81b32eb7e6 100644 (file)
--- a/README
+++ b/README
@@ -87,6 +87,10 @@ http://www.cmake.org/Wiki/CmakeMingw for detailed instructions.
 
  LD_PRELOAD=/path/to/glxtrace.so /path/to/application
 
+and it will generate a trace named "application.trace" in the current
+directory.  You can specify the written trace filename by setting the
+TRACE_FILE envirnment variable before running.
+
 * View the trace with
 
  /path/to/tracedump application.trace
index b7e3ebcbc3481a34f84e228aeb956ceb331e5acd..14f10b8b29ad19f0eaad9026641a317c9c87eb96 100644 (file)
@@ -219,7 +219,7 @@ void SaverThread::saveFile(const QString &fileName,
 
 void SaverThread::run()
 {
-    qputenv("TRACE_PATH", m_fileName.toLocal8Bit());
+    qputenv("TRACE_FILE", m_fileName.toLocal8Bit());
     unsigned id = 0;
     qDebug()<<"saver thread!";
     Trace::Open();
index dc1fee9807175411957db841193dc4b129ff832b..617983aeafe80c7baebc8e9626f8d0d377c692dc 100644 (file)
@@ -58,7 +58,7 @@ static void _Open(const char *szExtension) {
     char szFileName[PATH_MAX];
     const char *lpFileName;
 
-    lpFileName = getenv("TRACE_PATH");
+    lpFileName = getenv("TRACE_FILE");
     if (lpFileName) {
         strncpy(szFileName, lpFileName, PATH_MAX);
     }