diff --git a/trunk/auto/options.sh b/trunk/auto/options.sh index 1ed69bfa7..10ade0a61 100644 --- a/trunk/auto/options.sh +++ b/trunk/auto/options.sh @@ -28,7 +28,7 @@ SRS_FFMPEG=YES SRS_HTTP=YES SRS_RESEARCH=NO SRS_UTEST=YES -SRS_GPERF=YES +SRS_GPERF=NO ##################################################################################### # parse options diff --git a/trunk/research/gperftools/cpu-profiler/cpu_profiler.cc b/trunk/research/gperftools/cpu-profiler/cpu_profiler.cc index cb0e446b0..62b60e3c3 100644 --- a/trunk/research/gperftools/cpu-profiler/cpu_profiler.cc +++ b/trunk/research/gperftools/cpu-profiler/cpu_profiler.cc @@ -21,6 +21,8 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** +config srs with gperf(to make gperftools): + ./configure --with-gperf --jobs=3 set the pprof path if not set: export PPROF_PATH=`pwd`/../../../objs/pprof to do cpu profile: diff --git a/trunk/research/gperftools/heap-checker/heap_checker.cc b/trunk/research/gperftools/heap-checker/heap_checker.cc index c7dd33162..e13943104 100644 --- a/trunk/research/gperftools/heap-checker/heap_checker.cc +++ b/trunk/research/gperftools/heap-checker/heap_checker.cc @@ -21,6 +21,8 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** +config srs with gperf(to make gperftools): + ./configure --with-gperf --jobs=3 set the pprof path if not set: export PPROF_PATH=`pwd`/../../../objs/pprof to check mem leak: diff --git a/trunk/research/gperftools/heap-profiler/heap_profiler.cc b/trunk/research/gperftools/heap-profiler/heap_profiler.cc index 7c88a8df4..6b9613e70 100644 --- a/trunk/research/gperftools/heap-profiler/heap_profiler.cc +++ b/trunk/research/gperftools/heap-profiler/heap_profiler.cc @@ -21,6 +21,8 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** +config srs with gperf(to make gperftools): + ./configure --with-gperf --jobs=3 set the pprof path if not set: export PPROF_PATH=`pwd`/../../../objs/pprof to do mem profile: