diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-02-22 10:47:57 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-02-22 10:47:57 -0500 |
commit | ff512cc1877adfa854ade0371726a136493d8dbb (patch) | |
tree | d4a67bad5b93b2a02164c9a0d8a295a7f8809cdf /gnuradio-core/src/lib/runtime | |
parent | 5f9e5eb57633cc4e05c56d967786a8ae1fcf72ac (diff) |
ctrlport: added an option to allow enabling/disable of perfcounters over ctrlport.
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_top_block_impl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc b/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc index 7e771204a0..7a8e359bf1 100644 --- a/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc +++ b/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc @@ -109,8 +109,10 @@ gr_top_block_impl::start(int max_noutput_items) d_ffg->validate(); d_ffg->setup_connections(); - // Only export perf. counters if ControlPort config param is enabled. - if(gr_prefs::singleton()->get_bool("ControlPort", "on", false)) + // Only export perf. counters if ControlPort config param is enabled + // and if the PerfCounter option 'export' is turned on. + gr_prefs *p = gr_prefs::singleton(); + if(p->get_bool("ControlPort", "on", false) && p->get_bool("PerfCounters", "export", false)) d_ffg->enable_pc_rpc(); d_scheduler = make_scheduler(d_ffg, d_max_noutput_items); |