summaryrefslogtreecommitdiff
path: root/libfuzzer-example
diff options
context:
space:
mode:
authortongzongzhen <[email protected]>2023-11-28 14:18:14 +0800
committertongzongzhen <[email protected]>2023-11-28 14:18:14 +0800
commit9b40811cfdbfa11d45410f718a69036fa4a6c31f (patch)
tree1dd6440930740a1bf4d700770de559e280097a45 /libfuzzer-example
parentaf596e6eee948b739e22c20316097f92e897e1d8 (diff)
显示代码覆盖率
Diffstat (limited to 'libfuzzer-example')
-rw-r--r--libfuzzer-example/1-hello-world/README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/libfuzzer-example/1-hello-world/README.md b/libfuzzer-example/1-hello-world/README.md
index b7dc3e2..dc9a070 100644
--- a/libfuzzer-example/1-hello-world/README.md
+++ b/libfuzzer-example/1-hello-world/README.md
@@ -13,5 +13,8 @@ clang++ -fsanitize=address,fuzzer -fprofile-instr-generate -fcoverage-mapping te
llvm-profdata merge -sparse *.profraw -o default.profdata
# 远程连接的机器看不到图片
-llvm-cov show a.out -instr-profile=default.profdata -name=FuzzMe
+# llvm-cov show a.out -instr-profile=default.profdata -name=FuzzMe
+
+# 覆盖率html显示
+llvm-cov show -format=html a.out -instr-profile=default.profdata -o coverage_report
``` \ No newline at end of file