Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uftrace 분석에 도움되는 자료들 (uftrace tracing, code coverage) #90

Open
DanielTimLee opened this issue Oct 6, 2019 · 1 comment

Comments

@DanielTimLee
Copy link

DanielTimLee commented Oct 6, 2019

How to trace uftrace with uftrace

make clean
make TRACE=1
gcc -pg -o t-abc tests/s-abc.c
uftrace --no-libcall -a ./uftrace t-abc
Tracing uftrace with uftrace example

How to get code coverage for uftrace

sudo apt install lcov
make clean
make COVERAGE=1
gcc -pg -o t-abc tests/s-abc.c
./uftrace record -L. t-abc
./misc/run-lcov.sh
cd coverage.html
python -m SimpleHTTPServer 18080

# 커버리지 데이터 누적 방지를 위해 reset
make reset-coverage
Coverage Data sample

open index.html
coverage.html.zip

Coverage Data sample screenshot
Find more at:

http://korea.gnu.org/manual/release/gcov/gcov_1.ko.html

@DanielTimLee
Copy link
Author

Adding a detailed description about this to the Wiki will help.

@DanielTimLee DanielTimLee changed the title uftrace code coverage 사용 방법 (lcov) uftrace 분석하는데 도움되는 자료들 (uftrace tracing, code coverage) Oct 6, 2019
@DanielTimLee DanielTimLee changed the title uftrace 분석하는데 도움되는 자료들 (uftrace tracing, code coverage) uftrace 분석에 도움되는 자료들 (uftrace tracing, code coverage) Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant