From 6748d11a2f5a38ce284a37a8b5a0e83c48d11a9e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 5 May 2024 21:12:50 +0200 Subject: [PATCH] Fix capture utility. --- capture/src/capture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index 6aeb5c79..f11bc863 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -111,6 +111,7 @@ int main( int argc, char** argv ) const char* output = nullptr; int port = 8086; int seconds = -1; + int64_t memoryLimit = -1; int c; while( ( c = getopt( argc, argv, "a:o:p:fs:" ) ) != -1 ) @@ -158,7 +159,7 @@ int main( int argc, char** argv ) printf( "Connecting to %s:%i...", address, port ); fflush( stdout ); - tracy::Worker worker( address, port ); + tracy::Worker worker( address, port, memoryLimit ); while( !worker.HasData() ) { const auto handshake = worker.GetHandshakeStatus();