From: Zack Rusin Date: Mon, 18 Apr 2011 05:31:48 +0000 (-0400) Subject: Cleanup the state after closing the trace write X-Git-Tag: 2.0_alpha^2~1050^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf0432cd5f8ce6fc486182ac3db03dcbec972db;p=tools%2Fapitrace.git Cleanup the state after closing the trace write --- diff --git a/trace_write.cpp b/trace_write.cpp index 6a44b28..7167d35 100644 --- a/trace_write.cpp +++ b/trace_write.cpp @@ -148,10 +148,6 @@ void Open(void) { } } -void Close(void) { - _Close(); -} - static unsigned call_no = 0; inline bool lookup(std::vector &map, size_t index) { @@ -169,6 +165,15 @@ static std::vector enums; static std::vector bitmasks; +void Close(void) { + _Close(); + call_no = 0; + functions = std::vector(); + structs = std::vector(); + enums = std::vector(); + bitmasks = std::vector(); +} + unsigned BeginEnter(const FunctionSig &function) { OS::AcquireMutex(); Open();