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
|
@ -451,12 +451,21 @@ fi
|
|||
|
||||
if [ $SRS_GPERF = YES ]; then
|
||||
echo "#define SRS_GPERF" >> $SRS_AUTO_HEADERS_H
|
||||
#echo "#define SRS_GPERF_CPU_PROFILE" >> $SRS_AUTO_HEADERS_H
|
||||
#echo "#define SRS_GPERF_HEAP_PROFILE" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#define SRS_GPERF_HEAP_CHECK" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_GPERF" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#undef SRS_GPERF_CPU_PROFILE" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#undef SRS_GPERF_HEAP_PROFILE" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#undef SRS_GPERF_HEAP_CHECK" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
if [ $SRS_GPERF_MC = YES ]; then
|
||||
echo "#define SRS_GPERF_MC" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_GPERF_MC" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
if [ $SRS_GPERF_MP = YES ]; then
|
||||
echo "#define SRS_GPERF_MP" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_GPERF_MP" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
if [ $SRS_GPERF_CP = YES ]; then
|
||||
echo "#define SRS_GPERF_CP" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_GPERF_CP" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
|
|
@ -18,6 +18,9 @@ SRS_HTTP=RESERVED
|
|||
SRS_RESEARCH=RESERVED
|
||||
SRS_UTEST=RESERVED
|
||||
SRS_GPERF=RESERVED
|
||||
SRS_GPERF_MC=RESERVED
|
||||
SRS_GPERF_MP=RESERVED
|
||||
SRS_GPERF_CP=RESERVED
|
||||
# arguments
|
||||
SRS_JOBS=1
|
||||
|
||||
|
@ -28,7 +31,9 @@ SRS_FFMPEG=YES
|
|||
SRS_HTTP=YES
|
||||
SRS_RESEARCH=NO
|
||||
SRS_UTEST=YES
|
||||
SRS_GPERF=NO
|
||||
SRS_GPERF_MC=NO
|
||||
SRS_GPERF_MP=NO
|
||||
SRS_GPERF_CP=NO
|
||||
|
||||
#####################################################################################
|
||||
# parse options
|
||||
|
@ -56,7 +61,9 @@ do
|
|||
--with-http) SRS_HTTP=YES ;;
|
||||
--with-research) SRS_RESEARCH=YES ;;
|
||||
--with-utest) SRS_UTEST=YES ;;
|
||||
--with-gperf) SRS_GPERF=YES ;;
|
||||
--with-gmc) SRS_GPERF_MC=YES ;;
|
||||
--with-gmp) SRS_GPERF_MP=YES ;;
|
||||
--with-gcp) SRS_GPERF_CP=YES ;;
|
||||
|
||||
--without-ssl) SRS_SSL=NO ;;
|
||||
--without-hls) SRS_HLS=NO ;;
|
||||
|
@ -64,7 +71,9 @@ do
|
|||
--without-http) SRS_HTTP=NO ;;
|
||||
--without-research) SRS_RESEARCH=NO ;;
|
||||
--without-utest) SRS_UTEST=NO ;;
|
||||
--without-gperf) SRS_GPERF=NO ;;
|
||||
--without-gmc) SRS_GPERF_MC=NO ;;
|
||||
--without-gmp) SRS_GPERF_MP=NO ;;
|
||||
--without-gcp) SRS_GPERF_CP=NO ;;
|
||||
|
||||
--jobs) SRS_JOBS=${value} ;;
|
||||
|
||||
|
@ -101,7 +110,7 @@ if [ $help = yes ]; then
|
|||
--with-ffmpeg enable transcoding with ffmpeg.
|
||||
--with-research build the research tools.
|
||||
--with-utest build the utest for srs.
|
||||
--with-gperf build srs with gperf tools.
|
||||
--with-gmc build memory check for srs with gperf tools.
|
||||
|
||||
--without-ssl disable rtmp complex handshake.
|
||||
--without-hls disable hls, rtmp streaming only.
|
||||
|
@ -109,7 +118,7 @@ if [ $help = yes ]; then
|
|||
--without-ffmpeg disable the ffmpeg transcoding feature.
|
||||
--without-research do not build the research tools.
|
||||
--without-utest do not build the utest for srs.
|
||||
--without-gperf do not build srs with gperf tools.
|
||||
--without-gmc do not build memory check for srs with gperf tools.
|
||||
|
||||
--jobs[=N] Allow N jobs at once; infinite jobs with no arg.
|
||||
used for make in the configure, for example, to make ffmpeg.
|
||||
|
@ -146,10 +155,29 @@ if [ $SRS_UTEST = RESERVED ]; then
|
|||
echo "you must specifies the utest, see: ./configure --help";
|
||||
__check_ok=NO
|
||||
fi
|
||||
if [ $SRS_GPERF = RESERVED ]; then
|
||||
echo "you must specifies the gperf, see: ./configure --help";
|
||||
if [ $SRS_GPERF_MC = RESERVED ]; then
|
||||
echo "you must specifies the gperf-mc, see: ./configure --help";
|
||||
__check_ok=NO
|
||||
fi
|
||||
if [ $SRS_GPERF_MP = RESERVED ]; then
|
||||
echo "you must specifies the gperf-mp, see: ./configure --help";
|
||||
__check_ok=NO
|
||||
fi
|
||||
if [ $SRS_GPERF_CP = RESERVED ]; then
|
||||
echo "you must specifies the gperf-cp, see: ./configure --help";
|
||||
__check_ok=NO
|
||||
fi
|
||||
if [ $__check_ok = NO ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# generate the group option: SRS_GPERF
|
||||
if [ $SRS_GPERF_MC = YES ]; then
|
||||
SRS_GPERF=YES
|
||||
fi
|
||||
if [ $SRS_GPERF_MP = YES ]; then
|
||||
SRS_GPERF=YES
|
||||
fi
|
||||
if [ $SRS_GPERF_CP = YES ]; then
|
||||
SRS_GPERF=YES
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue