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

Inline GetZoneEndDirect().

This commit is contained in:
Bartosz Taudul
2018-03-23 01:50:38 +01:00
parent 910ce8b8ef
commit 69b49f527d
2 changed files with 6 additions and 16 deletions
+4 -4
View File
@@ -114,10 +114,10 @@ public:
// GetZoneEnd() will try to infer the end time by looking at child zones (parent zone can't end
// before its children have ended).
// GetZoneEndDirect() will only return zone's direct timing data, without looking at children.
int64_t GetZoneEnd( const ZoneEvent& ev ) const;
int64_t GetZoneEnd( const GpuEvent& ev ) const;
int64_t GetZoneEndDirect( const ZoneEvent& ev ) const;
int64_t GetZoneEndDirect( const GpuEvent& ev ) const;
static int64_t GetZoneEnd( const ZoneEvent& ev );
static int64_t GetZoneEnd( const GpuEvent& ev );
static tracy_force_inline int64_t GetZoneEndDirect( const ZoneEvent& ev ) { return ev.end != -1 ? ev.end : ev.start; }
static tracy_force_inline int64_t GetZoneEndDirect( const GpuEvent& ev ) { return ev.gpuEnd != -1 ? ev.gpuEnd : ev.gpuStart; }
const char* GetString( uint64_t ptr ) const;
const char* GetString( const StringRef& ref ) const;