]> git.cworth.org Git - apitrace/blobdiff - trace_writer.cpp
Various changes to the flushing code.
[apitrace] / trace_writer.cpp
index a615960474d48b522d8d5606c1290451bd7868d5..7511d3192420db31f65ee2e74dd5203db3ec201a 100644 (file)
@@ -42,7 +42,7 @@ namespace Trace {
 Writer::Writer() :
     call_no(0)
 {
-    m_file = new Trace::ZLibFile;
+    m_file = new Trace::SnappyFile;
     close();
 }
 
@@ -199,7 +199,6 @@ unsigned Writer::beginEnter(const FunctionSig *sig) {
 
 void Writer::endEnter(void) {
     _writeByte(Trace::CALL_END);
-    m_file->flush();
     OS::ReleaseMutex();
 }