X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fretrace.cpp;h=bbd10b45c2cd58cb12a5cbe2892675b1c0f25ee8;hb=d6b7eb6b7c8280762fb635a6e63aa3a426694ed7;hp=ee876ca3eae2c5ebe092c374df1340b1c4a42020;hpb=1f94577d8c4b1c1a2a1a8f3dceb0daac02dd72b7;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; }