2016-04-30 19:40:26 |
Murray Cumming |
description |
Something seems to be wrong with libprofiler.so
Doing this, for instance:
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=cpu_profile ./something
leads to this:
ERROR: ld.so: object '/usr/lib/libprofiler.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
I've also tried supplying the -lprofiler option to gcc, but that also seems to have some problem using libprofiler. For instance:
g++ ./something.cc -lprofiler
/usr/bin/ld: cannot find -lprofiler
Admittedly, this is my first attempt to use google-perftools, so maybe I'm doing something obviously wrong. |
Something seems to be wrong with libprofiler.so, at least in Ubuntu Xenial.
Doing this, for instance:
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=cpu_profile ./something
leads to this:
ERROR: ld.so: object '/usr/lib/libprofiler.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
I've also tried supplying the -lprofiler option to gcc, but that also seems to have some problem using libprofiler. For instance:
g++ ./something.cc -lprofiler
/usr/bin/ld: cannot find -lprofiler
Admittedly, this is my first attempt to use google-perftools, so maybe I'm doing something obviously wrong. |
|