mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Add api for tcmalloc
This commit is contained in:
parent
574ae58adc
commit
35a037cf05
8 changed files with 138 additions and 4 deletions
|
@ -58,6 +58,10 @@
|
|||
#define SRS_PERF_MR_ENABLED false
|
||||
#define SRS_PERF_MR_SLEEP (350 * SRS_UTIME_MILLISECONDS)
|
||||
|
||||
// For tcmalloc, set the default release rate.
|
||||
// @see https://gperftools.github.io/gperftools/tcmalloc.html
|
||||
#define SRS_PERF_TCMALLOC_RELEASE_RATE 0.8
|
||||
|
||||
/**
|
||||
* the MW(merged-write) send cache time in srs_utime_t.
|
||||
* the default value, user can override it in config.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue