[Discuss-gnuradio] Profiling Gnuradio message based blocks

2017-08-15 Thread Jeffrey Grasty
Hi,

I am trying to profile some message based blocks with performance monitor.
The message blocks appear in the gr-perf-monitorx; however, they do not
appear in runtime table.  This questions asks same thing:
https://lists.gnu.org/archive/html/discuss-gnuradio/2017-01/msg00121.html

It looks like a fix for this was incorporated in 3.7.10.2 (
https://github.com/gnuradio/gnuradio/pull/1119). I am running 3.7.12.  Is
there a configuration setting to enable profiling of message based blocks I
am missing?

Thanks,

Jeff
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Linking Boost Libraries

2013-01-26 Thread Jeffrey Grasty
Hi Josh,

Thanks!  That worked.

Jeff

On Fri, Jan 25, 2013 at 11:14 PM, Josh Blum j...@joshknows.com wrote:



 On 01/25/2013 05:12 PM, Jeffrey Grasty wrote:
  Hi,
 
  I am trying to measure the execution time of a for loop in a block and am
  trying to use boost::chrono class to do it.  However, when I build the
  block I get:
 
  Scanning dependencies of target gnuradio-modtest
  [  5%] Building CXX object
  lib/CMakeFiles/gnuradio-modtest.dir/passthrough_impl.cc.o
  Linking CXX shared library libgnuradio-modtest.dylib
  Undefined symbols for architecture x86_64:
boost::chrono::steady_clock::now(), referenced from:
virtual thunk to gr::modtest::passthrough_impl::work(int,
  std::vectorvoid const*, std::allocatorvoid const* ,
 std::vectorvoid*,
  std::allocatorvoid* )in passthrough_impl.cc.o
gr::modtest::passthrough_impl::work(int, std::vectorvoid const*,
  std::allocatorvoid const* , std::vectorvoid*, std::allocatorvoid*
  )in passthrough_impl.cc.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  make[2]: *** [lib/libgnuradio-modtest.dylib] Error 1
  make[1]: *** [lib/CMakeFiles/gnuradio-modtest.dir/all] Error 2
  make: *** [all] Error 2
 
  I am assuming it is because I need to tell cmake to link against
  libboost_chrono?  In my CMakeCache.txt, the boost library paths are set
 to
  the correct locations:
 
  //Path to a file.
  Boost_INCLUDE_DIR:PATH=/opt/local/include
 
  //Boost library directory
  Boost_LIBRARY_DIRS:FILEPATH=/opt/local/lib
 
  How do I tell cmake to link against libbboost_chrono?

 Look for the find_package(Boost... line. There is a list of required
 libraries, you should add chrono to this list.

 -josh

 
  Tahnks,
  Jeff
 
 
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org
  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 

 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Linking Boost Libraries

2013-01-25 Thread Jeffrey Grasty
Hi,

I am trying to measure the execution time of a for loop in a block and am
trying to use boost::chrono class to do it.  However, when I build the
block I get:

Scanning dependencies of target gnuradio-modtest
[  5%] Building CXX object
lib/CMakeFiles/gnuradio-modtest.dir/passthrough_impl.cc.o
Linking CXX shared library libgnuradio-modtest.dylib
Undefined symbols for architecture x86_64:
  boost::chrono::steady_clock::now(), referenced from:
  virtual thunk to gr::modtest::passthrough_impl::work(int,
std::vectorvoid const*, std::allocatorvoid const* , std::vectorvoid*,
std::allocatorvoid* )in passthrough_impl.cc.o
  gr::modtest::passthrough_impl::work(int, std::vectorvoid const*,
std::allocatorvoid const* , std::vectorvoid*, std::allocatorvoid*
)in passthrough_impl.cc.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [lib/libgnuradio-modtest.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-modtest.dir/all] Error 2
make: *** [all] Error 2

I am assuming it is because I need to tell cmake to link against
libboost_chrono?  In my CMakeCache.txt, the boost library paths are set to
the correct locations:

//Path to a file.
Boost_INCLUDE_DIR:PATH=/opt/local/include

//Boost library directory
Boost_LIBRARY_DIRS:FILEPATH=/opt/local/lib

How do I tell cmake to link against libbboost_chrono?

Tahnks,
Jeff
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio