mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support gperf memory check(gmc).
This commit is contained in:
parent
489a492e47
commit
741d6f97f6
6 changed files with 88 additions and 24 deletions
22
trunk/configure
vendored
22
trunk/configure
vendored
|
@ -64,6 +64,8 @@ SrsFfmpegSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_FFMPEG = YES ]; then Sr
|
|||
SrsHttpSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_HTTP = YES ]; then SrsHttpSummaryColor="\$(GREEN)"; fi
|
||||
SrsResearchSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_RESEARCH = YES ]; then SrsResearchSummaryColor="\$(GREEN)"; fi
|
||||
SrsUtestSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_UTEST = YES ]; then SrsUtestSummaryColor="\$(GREEN)"; fi
|
||||
SrsGperfSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_GPERF = YES ]; then SrsGperfSummaryColor="\$(GREEN)"; fi
|
||||
SrsGperfMCSummaryColor="\$(YELLOW)(disabled) "; if [ $SRS_GPERF_MC = YES ]; then SrsGperfMCSummaryColor="\$(GREEN)"; fi
|
||||
|
||||
#####################################################################################
|
||||
# makefile
|
||||
|
@ -91,6 +93,10 @@ default: bandwidth librtmp-sample utest
|
|||
@echo -e " \$(GREEN)librtmp-sample: ./research/librtmp, the srs-librtmp client sample\$(BLACK)"
|
||||
@echo -e " ${SrsResearchSummaryColor}research: ./objs/research, api server, players, ts info.\$(BLACK)"
|
||||
@echo -e " ${SrsUtestSummaryColor}utest: ./objs/srs_utest, the utest for srs\$(BLACK)"
|
||||
@echo -e " ${SrsGperfSummaryColor}gperf: gmc/gmp/gcp for srs, @see: \$(BLACK)"
|
||||
@echo -e " ${SrsGperfMCSummaryColor}gmc: gperf memory check, @see: http://google-perftools.googlecode.com/svn/trunk/doc/heap_checker.html\$(BLACK)"
|
||||
@echo -e " ${SrsGperfMCSummaryColor}env PPROF_PATH=./objs/pprof HEAPCHECK=normal ./objs/srs -c conf/srs.conf # start gmc\$(BLACK)"
|
||||
@echo -e " ${SrsGperfMCSummaryColor}killall -2 srs # or CTRL+C to stop gmc\$(BLACK)"
|
||||
@echo -e "\$(GREEN)binaries @see: https://github.com/winlinvip/simple-rtmp-server/wiki/Build\$(BLACK)"
|
||||
|
||||
help:
|
||||
|
@ -313,10 +319,20 @@ if [ $SRS_UTEST = YES ]; then
|
|||
else
|
||||
echo -e "${YELLOW}note: utest for srs are not builded${BLACK}"
|
||||
fi
|
||||
if [ $SRS_GPERF = YES ]; then
|
||||
echo -e "${GREEN}gperf(mem leak detect, mem/cpu perf) for srs are builded${BLACK}"
|
||||
if [ $SRS_GPERF_MC = YES ]; then
|
||||
echo -e "${GREEN}gmc(gperf memory check) for srs are builded${BLACK}"
|
||||
else
|
||||
echo -e "${YELLOW}note: gperf(mem leak detect, mem/cpu perf) for srs are not builded${BLACK}"
|
||||
echo -e "${YELLOW}note: gmc(gperf memory check) for srs are not builded${BLACK}"
|
||||
fi
|
||||
if [ $SRS_GPERF_MP = YES ]; then
|
||||
echo -e "${GREEN}gmp(gperf memory profile) for srs are builded${BLACK}"
|
||||
else
|
||||
echo -e "${YELLOW}note: gmp(gperf memory profile) for srs are not builded${BLACK}"
|
||||
fi
|
||||
if [ $SRS_GPERF_CP = YES ]; then
|
||||
echo -e "${GREEN}gcp(gperf cpu profile) for srs are builded${BLACK}"
|
||||
else
|
||||
echo -e "${YELLOW}note: gcp(gperf cpu profile) for srs are not builded${BLACK}"
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue