1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

slowdown the cpu usage for srs to calc connections when too many connections. 0.9.180

This commit is contained in:
winlin 2014-08-01 22:43:12 +08:00
parent 6539ce69f4
commit 15d4993cc3
4 changed files with 12 additions and 4 deletions

View file

@ -14,7 +14,7 @@ gprof2dot.py:
0. 若需要图形化编译dot
cd 3rdparty/gprof && bash build_gprof2dot.sh
1. srs配置时:
./configure --with-pg
./configure --with-gprof
脚本会加入编译参数"-pg -lc_p"gcc -g -pg -lc_p -c xxx -o xxx.o即在configure中打开 Performance="-pg -lc_p"
链接时,加入链接选项"-pg"否则无法工作gcc -pg -o srs xxxx.o即在configure中打开 PerformanceLink="-pg"
2. 编译和启动程序make && ./objs/srs -c conf/srs.conf