mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
No magic numbers.
This commit is contained in:
parent
26be78530f
commit
f957f64ce1
@ -234,6 +234,8 @@ enum { CrashEventSize = sizeof( CrashEvent ) };
|
|||||||
|
|
||||||
struct ContextSwitchData
|
struct ContextSwitchData
|
||||||
{
|
{
|
||||||
|
enum : int8_t { NoState = 100 };
|
||||||
|
|
||||||
int64_t Start() const { return int64_t( _start_cpu ) >> 8; }
|
int64_t Start() const { return int64_t( _start_cpu ) >> 8; }
|
||||||
void SetStart( int64_t start ) { assert( start < ( 1ll << 47 ) ); _start_cpu = ( _start_cpu & 0xFF ) | uint64_t( start << 8 ); }
|
void SetStart( int64_t start ) { assert( start < ( 1ll << 47 ) ); _start_cpu = ( _start_cpu & 0xFF ) | uint64_t( start << 8 ); }
|
||||||
int64_t End() const { return int64_t( _end_reason_state ) >> 16; }
|
int64_t End() const { return int64_t( _end_reason_state ) >> 16; }
|
||||||
|
@ -5046,7 +5046,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
const char* desc;
|
const char* desc;
|
||||||
if( reason == 100 )
|
if( reason == ContextSwitchData::NoState )
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( DecodeContextSwitchStateCode( state ) );
|
ImGui::TextUnformatted( DecodeContextSwitchStateCode( state ) );
|
||||||
desc = DecodeContextSwitchState( state );
|
desc = DecodeContextSwitchState( state );
|
||||||
|
Loading…
Reference in New Issue
Block a user