forked from alariq/mc2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devdoc.txt
25 lines (16 loc) · 834 Bytes
/
devdoc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER=/home/a/Downloads/llvm-build/libexec/c++-analyzer ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER=/home/a/Downloads/llvm-build/bin/clang++ ..
# cehck performance
valgrind --tool=callgrind --cache-sim=yes ./build-reldbginfo/mc2
callgrind_control -i off
# check memory ops with debug on
1) valgrind --suppressions=./valgrind-fglrx.supp --gen-suppressions=yes --vgdb=yes --vgdb-error=0 ./build-dbg/mc2
2) gdb mc2
2.1) gdb> target remote | vgdb
# view data
kcachegrind <filename>
memory corruption investigation
https://en.wikibooks.org/wiki/Linux_Applications_Debugging_Techniques/Heap_corruption
pageheap.exe, application verifier
gflags.exe
check apitest and libccd for CMake files examples