mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix capture utility.
This commit is contained in:
parent
68473381b9
commit
6748d11a2f
@ -111,6 +111,7 @@ int main( int argc, char** argv )
|
|||||||
const char* output = nullptr;
|
const char* output = nullptr;
|
||||||
int port = 8086;
|
int port = 8086;
|
||||||
int seconds = -1;
|
int seconds = -1;
|
||||||
|
int64_t memoryLimit = -1;
|
||||||
|
|
||||||
int c;
|
int c;
|
||||||
while( ( c = getopt( argc, argv, "a:o:p:fs:" ) ) != -1 )
|
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 );
|
printf( "Connecting to %s:%i...", address, port );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
tracy::Worker worker( address, port );
|
tracy::Worker worker( address, port, memoryLimit );
|
||||||
while( !worker.HasData() )
|
while( !worker.HasData() )
|
||||||
{
|
{
|
||||||
const auto handshake = worker.GetHandshakeStatus();
|
const auto handshake = worker.GetHandshakeStatus();
|
||||||
|
Loading…
Reference in New Issue
Block a user