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

add gprof files and dot files

This commit is contained in:
winlin 2014-03-07 16:09:35 +08:00
parent 6e0bebdacf
commit 42ad264182
7 changed files with 2285 additions and 0 deletions

17
trunk/3rdparty/gprof/build_gprof2dot.sh vendored Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# check exists.
if [[ -d graphviz-2.18 ]]; then
echo "graphviz is ok";
exit 0;
fi
# check sudoer.
sudo echo "ok" > /dev/null 2>&1;
ret=$?; if [[ 0 -ne ${ret} ]]; then echo "you must be sudoer"; exit 1; fi
tar xf graphviz-2.18.tar.gz
cd graphviz-2.18 && ./configure && make && sudo make install
ret=$?; if [[ $ret -ne 0 ]]; then echo "build gprof2dot failed."; exit $ret; fi
echo "we test in Centos6.0, it's ok"