Commit 7c439d6b authored by Mathieu Faverge's avatar Mathieu Faverge

Add option for memory usage

parent 16abc5d5
......@@ -45,6 +45,12 @@ option(VITE_ENABLE_VBO
option(VITE_ENABLE_MT_PARSERS
"Enable multi-threading in parsers." OFF)
### Debug options
option(VITE_DBG_MEMORY_USAGE
"Enable statistic on memory usage." OFF)
option(VITE_DBG_MEMORY_TRACE
"Enable trace generation of memory usage." OFF)
### Trace format options
option(VITE_ENABLE_OTF
"Enable the support of OTF file format." OFF)
......@@ -107,5 +113,13 @@ if(VITE_ENABLE_MT_PARSERS)
add_definitions(-DMT_PARSING)
endif()
if(VITE_DBG_MEMORY_USAGE)
add_definitions(-DMEMORY_USAGE)
endif()
if(VITE_DBG_MEMORY_TRACE)
add_definitions(-DMEMORY_TRACE)
endif()
add_subdirectory(src)
add_subdirectory(plugins)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment