Use heaptrack for memory profiling on main
parent
add592afd2
commit
8645bbd963
|
@ -4,3 +4,4 @@ release/
|
||||||
web/
|
web/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
.gdb_history
|
.gdb_history
|
||||||
|
heaptrack.*
|
||||||
|
|
|
@ -34,10 +34,9 @@ add_executable(${PROJECT_NAME}
|
||||||
main.c
|
main.c
|
||||||
)
|
)
|
||||||
|
|
||||||
if (NOT EMSCRIPTEN)
|
# Use Heaptrack to profile the main application
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE -fsanitize=address -gdwarf-4)
|
# Do not compile in ASAN
|
||||||
target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address -gdwarf-4)
|
|
||||||
endif ()
|
|
||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CMAKE_CURRENT_LIST_DIR}
|
${CMAKE_CURRENT_LIST_DIR}
|
||||||
|
|
Loading…
Reference in New Issue