Closed jesperpedersen closed 5 years ago
If I do
gcc -O0 -fno-omit-frame-pointer -gdwarf-4 -lpthread -o threads threads.c coz run --- ./threads
profile.coz will only contain
startup time=1570708262628386257 runtime time=26558496795 samples location=/path/to/threads.c:15 count=1005 samples location=/path/to/threads.c:17 count=710 samples location=/path/to/threads.c:19 count=326 samples location=/path/to/threads.c:21 count=442 samples location=/path/to/threads.c:42 count=22764 samples location=/path/to/threads.c:44 count=3733 samples location=/path/to/threads.c:66 count=2435 samples location=/path/to/threads.c:68 count=383
However, if I explicit link against coz with
gcc -O0 -fno-omit-frame-pointer -gdwarf-4 -lpthread -lcoz -Wl,-rpath,/usr/local/lib -o threads threads.c
I do get results in profile.coz threads.txt
Forgot -ldl
-ldl
If I do
profile.coz will only contain
However, if I explicit link against coz with
I do get results in profile.coz threads.txt