diff options
author | Tom Rondeau | 2013-01-25 16:35:26 -0500 |
---|---|---|
committer | Tom Rondeau | 2013-02-07 17:05:13 -0500 |
commit | 8b425118da3a09e490486b83a91208d2530d9897 (patch) | |
tree | 39c2e50ef7d1be8726eb0059d5ba40fadb3d8beb /CMakeLists.txt | |
parent | 30b4428b23dad07c74381d790ff67dffa948aa40 (diff) | |
download | gnuradio-8b425118da3a09e490486b83a91208d2530d9897.tar.gz gnuradio-8b425118da3a09e490486b83a91208d2530d9897.tar.bz2 gnuradio-8b425118da3a09e490486b83a91208d2530d9897.zip |
sched: adding in perf counters to measure performance of blocks during exectution of flowgraph.
Conflicts:
CMakeLists.txt
gnuradio-core/src/lib/runtime/gr_block.cc
gnuradio-core/src/lib/runtime/gr_block_detail.cc
gnuradio-core/src/lib/runtime/gr_block_detail.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f8adbb33..1db0f28e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,14 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks) set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${GR_CONF_DIR}" CACHE PATH "System configuration directory") set(GR_PREFSDIR ${SYSCONFDIR}/${CMAKE_PROJECT_NAME}/conf.d) +OPTION(ENABLE_PERFORMANCE_COUNTERS "Enable block performance counters" OFF) +if(ENABLE_PERFORMANCE_COUNTERS) + message(STATUS "ADDING PERF COUNTERS") + add_definitions(-DGR_PERFORMANCE_COUNTERS) +else(ENABLE_PERFORMANCE_COUNTERS) + message(STATUS "NO PERF COUNTERS") +endif(ENABLE_PERFORMANCE_COUNTERS) + ######################################################################## # Variables replaced when configuring the package config files ######################################################################## |