From 3201eea0565ce2bb0418d1936fec71bdeb14c084 Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Thu, 24 Oct 2019 17:30:41 +0100 Subject: IVGCVSW-3444 File Only Profiling Connection * Add FileOnlyProfilingConnection Decorator * Fix bug where Conn Ack not automatically sent back * Modify GatordMock to use the Counter Directory class. * Promote DirectoryCaptureCommandHandler from GatordMock into ArmNN. * Remove MockUtils as it's contents were moved or deleted. * Rewrite GatordMockTests to use Counter Directory class. * Flush streams in ProfilingConnectionDumpToFileDecorator::Close. Signed-off-by: Keith Davis Signed-off-by: Colm Donelan Change-Id: I77b2aedece24150dd31691b577f3b5d81b2e226f --- src/profiling/ProfilingConnectionDumpToFileDecorator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/profiling/ProfilingConnectionDumpToFileDecorator.cpp') diff --git a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp index 5a14aa864e..d61911b54e 100644 --- a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp +++ b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp @@ -43,7 +43,9 @@ bool ProfilingConnectionDumpToFileDecorator::IsOpen() const void ProfilingConnectionDumpToFileDecorator::Close() { + m_IncomingDumpFileStream.flush(); m_IncomingDumpFileStream.close(); + m_OutgoingDumpFileStream.flush(); m_OutgoingDumpFileStream.close(); m_Connection->Close(); } -- cgit v1.2.1