mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add combined start + srcloc setter for ZoneEvent.
This commit is contained in:
parent
354115ef9b
commit
5c6bfcbeee
@ -180,6 +180,8 @@ struct ZoneEvent
|
|||||||
tracy_force_inline void SetChild( int32_t child ) { memcpy( &_child2, &child, 4 ); }
|
tracy_force_inline void SetChild( int32_t child ) { memcpy( &_child2, &child, 4 ); }
|
||||||
tracy_force_inline bool HasChildren() const { uint8_t tmp; memcpy( &tmp, ((char*)&_end_child1)+1, 1 ); return ( tmp >> 7 ) == 0; }
|
tracy_force_inline bool HasChildren() const { uint8_t tmp; memcpy( &tmp, ((char*)&_end_child1)+1, 1 ); return ( tmp >> 7 ) == 0; }
|
||||||
|
|
||||||
|
tracy_force_inline void SetStartSrcLoc( int64_t start, int16_t srcloc ) { assert( start < (int64_t)( 1ull << 47 ) ); start <<= 16; start |= uint16_t( srcloc ); memcpy( &_start_srcloc, &start, 8 ); }
|
||||||
|
|
||||||
uint64_t _start_srcloc;
|
uint64_t _start_srcloc;
|
||||||
uint16_t _child2;
|
uint16_t _child2;
|
||||||
uint64_t _end_child1;
|
uint64_t _end_child1;
|
||||||
|
Loading…
Reference in New Issue
Block a user