mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Updated as suggested by wolf in the PR
This commit is contained in:
parent
c5fa9be41e
commit
a950e444b5
@ -34,7 +34,3 @@ message(STATUS "TRACY_PORT: ${TRACY_PORT}")
|
||||
target_compile_definitions(tracy_client PUBLIC TRACY_PORT=${TRACY_PORT})
|
||||
|
||||
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(tracy_client PRIVATE ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
@ -105,10 +105,6 @@
|
||||
#include "client/TracyProfiler.hpp"
|
||||
#include "client/TracyScoped.hpp"
|
||||
|
||||
#define TracySourceLocation( varname ) static const tracy::SourceLocationData varname { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 };
|
||||
#define TracySourceLocationN( varname, name ) static const tracy::SourceLocationData varname { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 };
|
||||
#define TracySourceLocationNC( varname, name, color ) static const tracy::SourceLocationData varname { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color };
|
||||
|
||||
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK
|
||||
# define ZoneNamed( varname, active ) static constexpr tracy::SourceLocationData TracyConcat(__tracy_source_location,__LINE__) { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone varname( &TracyConcat(__tracy_source_location,__LINE__), TRACY_CALLSTACK, active );
|
||||
# define ZoneNamedN( varname, name, active ) static constexpr tracy::SourceLocationData TracyConcat(__tracy_source_location,__LINE__) { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone varname( &TracyConcat(__tracy_source_location,__LINE__), TRACY_CALLSTACK, active );
|
||||
|
@ -72,6 +72,7 @@ constexpr const char* GpuContextNames[] = {
|
||||
"Vulkan",
|
||||
"OpenCL",
|
||||
"Direct3D 12"
|
||||
"Direct3D 11"
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user