This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VERBOSE=1 | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prologue: | |
mov ip, sp | |
stmdb sp!, {fp, ip, lr, pc} | |
sub fp, ip, #4 | |
epilogue: | |
ldm sp, {fp, sp, pc} | |
====== | |
==stack==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -t <pid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
#include <sys/syscall.h> | |
//... | |
int getCpuId() { | |
unsigned cpu; | |
if (syscall(__NR_getcpu, &cpu, NULL, NULL) < 0) { | |
return -1; | |
} else { | |
return (int) cpu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perf: | |
https://github.com/KDAB/hotspot | |
gperftools: | |
https://github.com/gperftools/gperftools | |
cpp opt note: | |
https://github.com/facontidavide/CPP_Optimizations_Diary | |
online benchmark: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls /sys/kernel/debug/tracing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell getevent | awk '{print $0,strtonum("0x" $NF)}' | |
# or | |
adb shell getevent | awk '{ if($3 == "0035" || $3 == "0036" ) print $0,strtonum("0x" $4)}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# search by comment string | |
git log --grep="hello world" | |
# search commit modify a specific file | |
git log --stat -p <file_path> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 app_profiler.py -p com.example.com -lib ./symbols -r " -f 2000 -g --duration 2.5 --post-unwind=yes" --ndk_path ./android-ndk-r20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arm-linux-androideabi-readelf --dyn-syms -W mylib.so | |
# -W: --wide , allow output width to execeed 80 chars. |
NewerOlder