From 521eb1532debb0feb8cbc636759195d0004943cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 22 Apr 2011 12:34:22 +0100 Subject: [PATCH] s/TRACE_PATH/TRACE_FILE/ As "PATH" usually suggested search paths. --- README | 4 ++++ gui/saverthread.cpp | 2 +- trace_write.cpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README b/README index 8fc78a1..fe8347b 100644 --- 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 diff --git a/gui/saverthread.cpp b/gui/saverthread.cpp index b7e3ebc..14f10b8 100644 --- a/gui/saverthread.cpp +++ b/gui/saverthread.cpp @@ -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(); diff --git a/trace_write.cpp b/trace_write.cpp index dc1fee9..617983a 100644 --- a/trace_write.cpp +++ b/trace_write.cpp @@ -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); } -- 2.43.0