X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_writer.hpp;h=4c9547788c8e28b5833943744b86f18f533280dd;hb=62bce80269d08b94315ce5ca13ed0431137eeef9;hp=a46b43edc487f15faff6f22bc68fade0a57924fa;hpb=112a1329ecceaca7386369a1cc685af44dd34738;p=apitrace diff --git a/common/trace_writer.hpp b/common/trace_writer.hpp index a46b43e..4c95477 100644 --- a/common/trace_writer.hpp +++ b/common/trace_writer.hpp @@ -37,7 +37,6 @@ #include "trace_model.hpp" - namespace trace { class File; @@ -50,6 +49,7 @@ namespace trace { std::vector structs; std::vector enums; std::vector bitmasks; + std::vector frames; public: Writer(); @@ -70,6 +70,10 @@ namespace trace { void beginReturn(void); inline void endReturn(void) {} + void beginBacktrace(unsigned num_frames); + void writeStackFrame(const RawStackFrame *frame); + inline void endBacktrace(void) {} + void beginArray(size_t length); inline void endArray(void) {}