mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-12 16:19:54 +00:00
Allow disabling CPU usage graph.
This commit is contained in:
@@ -20,7 +20,7 @@ constexpr auto FileOptions = "options";
|
||||
constexpr auto FileAnnotations = "annotations";
|
||||
|
||||
enum : uint32_t { VersionTimeline = 0 };
|
||||
enum : uint32_t { VersionOptions = 2 };
|
||||
enum : uint32_t { VersionOptions = 3 };
|
||||
enum : uint32_t { VersionAnnotations = 0 };
|
||||
|
||||
UserData::UserData()
|
||||
@@ -103,6 +103,7 @@ void UserData::LoadState( ViewData& data )
|
||||
fread( &data.drawContextSwitches, 1, sizeof( data.drawContextSwitches ), f );
|
||||
fread( &data.darkenContextSwitches, 1, sizeof( data.darkenContextSwitches ), f );
|
||||
fread( &data.drawCpuData, 1, sizeof( data.drawCpuData ), f );
|
||||
fread( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
||||
fread( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
||||
}
|
||||
fclose( f );
|
||||
@@ -141,6 +142,7 @@ void UserData::SaveState( const ViewData& data )
|
||||
fwrite( &data.drawContextSwitches, 1, sizeof( data.drawContextSwitches ), f );
|
||||
fwrite( &data.darkenContextSwitches, 1, sizeof( data.darkenContextSwitches ), f );
|
||||
fwrite( &data.drawCpuData, 1, sizeof( data.drawCpuData ), f );
|
||||
fwrite( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
||||
fwrite( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
||||
fclose( f );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user