I have installed libgoogle-perftools-dev via software center in Ubuntu 12.04. As suggested by http://pj.freefaculty.org/blog/?p=140, I want to add to my cpp file:
#include <gperftools/profiler.h>
But the compiler says
gperftools/profiler.h: No such file or directory
I tried to find where it is:
$ locate -i gperftools
no return, and
$ locate -i "profiler.h"
returns
/usr/include/c++/4.6/profile/impl/profiler.h
/usr/src/linux-headers-3.2.0-23-generic-pae/include/config/function/profiler.h
which I am not sure if are for gperftools
.
So I wonder how to find
- where libgoogle-perftools-dev is installed?
- where gperftools/profiler.h is located?