mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +00:00
Add ghost zones display to view options.
This commit is contained in:
parent
eb5f7a27e7
commit
2f674833b2
@ -20,7 +20,7 @@ constexpr auto FileOptions = "options";
|
|||||||
constexpr auto FileAnnotations = "annotations";
|
constexpr auto FileAnnotations = "annotations";
|
||||||
|
|
||||||
enum : uint32_t { VersionTimeline = 0 };
|
enum : uint32_t { VersionTimeline = 0 };
|
||||||
enum : uint32_t { VersionOptions = 4 };
|
enum : uint32_t { VersionOptions = 5 };
|
||||||
enum : uint32_t { VersionAnnotations = 0 };
|
enum : uint32_t { VersionAnnotations = 0 };
|
||||||
|
|
||||||
UserData::UserData()
|
UserData::UserData()
|
||||||
@ -106,6 +106,7 @@ void UserData::LoadState( ViewData& data )
|
|||||||
fread( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
fread( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
||||||
fread( &data.drawSamples, 1, sizeof( data.drawSamples ), f );
|
fread( &data.drawSamples, 1, sizeof( data.drawSamples ), f );
|
||||||
fread( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
fread( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
||||||
|
fread( &data.ghostZones, 1, sizeof( data.ghostZones ), f );
|
||||||
}
|
}
|
||||||
fclose( f );
|
fclose( f );
|
||||||
}
|
}
|
||||||
@ -146,6 +147,7 @@ void UserData::SaveState( const ViewData& data )
|
|||||||
fwrite( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
fwrite( &data.drawCpuUsageGraph, 1, sizeof( data.drawCpuUsageGraph ), f );
|
||||||
fwrite( &data.drawSamples, 1, sizeof( data.drawSamples ), f );
|
fwrite( &data.drawSamples, 1, sizeof( data.drawSamples ), f );
|
||||||
fwrite( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
fwrite( &data.dynamicColors, 1, sizeof( data.dynamicColors ), f );
|
||||||
|
fwrite( &data.ghostZones, 1, sizeof( data.ghostZones ), f );
|
||||||
fclose( f );
|
fclose( f );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ struct ViewData
|
|||||||
uint8_t drawCpuUsageGraph = true;
|
uint8_t drawCpuUsageGraph = true;
|
||||||
uint8_t drawSamples = true;
|
uint8_t drawSamples = true;
|
||||||
uint8_t dynamicColors = 1;
|
uint8_t dynamicColors = 1;
|
||||||
|
uint8_t ghostZones = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Annotation
|
struct Annotation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user