X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fretrace.cpp;h=bbd10b45c2cd58cb12a5cbe2892675b1c0f25ee8;hb=d06fb348d5daabcb99f06f7b743f9b958c28bcf2;hp=ee876ca3eae2c5ebe092c374df1340b1c4a42020;hpb=4647f208f5a2b87391281e0f1202f66c23943bd9;p=apitrace diff --git a/retrace/retrace.cpp b/retrace/retrace.cpp index ee876ca..bbd10b4 100644 --- a/retrace/retrace.cpp +++ b/retrace/retrace.cpp @@ -28,20 +28,22 @@ #include #include "os_time.hpp" -#include "trace_dump.hpp" #include "retrace.hpp" namespace retrace { +trace::DumpFlags dumpFlags = 0; + + static bool call_dumped = false; static void dumpCall(trace::Call &call) { if (verbosity >= 0 && !call_dumped) { std::cout << std::hex << call.thread_id << std::dec << " "; - std::cout << call; + trace::dump(call, std::cout, dumpFlags); std::cout.flush(); call_dumped = true; }