1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Move file compression enum out of FileWrite.

This commit is contained in:
Bartosz Taudul
2024-05-31 19:24:32 +02:00
parent 07c6e12dbf
commit 9dea830f98
6 changed files with 26 additions and 26 deletions
+4 -4
View File
@@ -50,7 +50,7 @@ int main( int argc, char** argv )
}
#endif
tracy::FileWrite::Compression clev = tracy::FileWrite::Compression::Fast;
tracy::FileCompression clev = tracy::FileCompression::Fast;
uint32_t events = tracy::EventType::All;
int zstdLevel = 1;
bool buildDict = false;
@@ -64,13 +64,13 @@ int main( int argc, char** argv )
switch( c )
{
case 'h':
clev = tracy::FileWrite::Compression::Slow;
clev = tracy::FileCompression::Slow;
break;
case 'e':
clev = tracy::FileWrite::Compression::Extreme;
clev = tracy::FileCompression::Extreme;
break;
case 'z':
clev = tracy::FileWrite::Compression::Zstd;
clev = tracy::FileCompression::Zstd;
zstdLevel = atoi( optarg );
if( zstdLevel > ZSTD_maxCLevel() || zstdLevel < ZSTD_minCLevel() )
{