Add --help message to GUI profiler.

This commit is contained in:
Bartosz Taudul 2022-04-27 01:44:26 +02:00
parent 1e35bbd54e
commit 92dc52d530
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -360,6 +360,17 @@ int main( int argc, char** argv )
if( argc == 2 )
{
if( strcmp( argv[1], "--help" ) == 0 )
{
printf( "%s\n\n", title );
printf( "Usage:\n\n" );
printf( " Open trace file stored on disk:\n" );
printf( " %s file.tracy\n\n", argv[0] );
printf( " Connect to a running client:\n" );
printf( " %s -a address [-p port]\n", argv[0] );
updateThread.join();
exit( 0 );
}
auto f = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( argv[1] ) );
if( f )
{