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:
parent
ee7fafe465
commit
03a14e2e1a
4 changed files with 7 additions and 1 deletions
|
@ -28,7 +28,7 @@ SRS_FFMPEG=YES
|
|||
SRS_HTTP=YES
|
||||
SRS_RESEARCH=NO
|
||||
SRS_UTEST=YES
|
||||
SRS_GPERF=YES
|
||||
SRS_GPERF=NO
|
||||
|
||||
#####################################################################################
|
||||
# parse options
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue