1
0
Fork 0
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:
winlin 2014-03-07 12:24:47 +08:00
parent 489a492e47
commit 741d6f97f6
6 changed files with 88 additions and 24 deletions

View file

@ -53,10 +53,6 @@ void handler(int signo)
int main(int argc, char** argv)
{
int ret = ERROR_SUCCESS;
#ifdef SRS_GPERF_HEAP_CHECK
// env HEAPCHECK=normal ./objs/srs -c srs.conf
#endif
#ifdef SRS_GPERF_HEAP_PROFILE
HeapProfilerStart("gperf.srs");
@ -66,6 +62,7 @@ int main(int argc, char** argv)
#endif
signal(SIGNAL_RELOAD, handler);
signal(SIGINT, handler);
if ((ret = _srs_config->parse_options(argc, argv)) != ERROR_SUCCESS) {
return ret;