From 21ede1f08417502eca564fe8b2e61988c539a553 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 17 Apr 2020 07:57:52 +0800 Subject: [PATCH] Enable perf stat by default --- trunk/conf/full.conf | 4 ++-- trunk/src/app/srs_app_config.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index 7cc2c5593..643c364c8 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -449,8 +449,8 @@ rtc_server { # default: 127 padding 127; # Whether enable the perf stat at http://localhost:1985/api/v1/perf - # default: off - perf_stat off; + # default: on + perf_stat on; } vhost rtc.vhost.srs.com { diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 66e5942e5..d2fae574d 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -4860,7 +4860,7 @@ int SrsConfig::get_rtc_server_padding() bool SrsConfig::get_rtc_server_perf_stat() { - static bool DEFAULT = false; + static bool DEFAULT = true; SrsConfDirective* conf = root->get("rtc_server"); if (!conf) { @@ -4872,7 +4872,7 @@ bool SrsConfig::get_rtc_server_perf_stat() return DEFAULT; } - return SRS_CONF_PERFER_FALSE(conf->arg0()); + return SRS_CONF_PERFER_TRUE(conf->arg0()); } SrsConfDirective* SrsConfig::get_rtc(string vhost)