1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add gperftools for mem leak detect, mem/cpu profile.

This commit is contained in:
winlin 2014-03-06 16:52:51 +08:00
parent ee7fafe465
commit 03a14e2e1a
4 changed files with 7 additions and 1 deletions

View file

@ -28,7 +28,7 @@ SRS_FFMPEG=YES
SRS_HTTP=YES
SRS_RESEARCH=NO
SRS_UTEST=YES
SRS_GPERF=YES
SRS_GPERF=NO
#####################################################################################
# parse options

View file

@ -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:

View file

@ -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:

View file

@ -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: