mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 00:23:47 +00:00
Extract common output functions from capture.cpp into a proper library: - InitTerminalDetection()/IsTerminal() - terminal detection - AnsiPrintf() - printf with ANSI escape codes - WaitForConnection() - blocks until connected, returns error code - PrintCaptureProgress() - prints throughput/memory/time stats - PrintWorkerFailure() - prints failure details with callstack Functions are declared in CaptureOutput.hpp and implemented in CaptureOutput.cpp. Both tracy-capture and future tools can share this code. Co-authored-by: Grégoire Roussel <gregoire.roussel@wandercraft.eu>