跳至主要内容

博文

gperftools pprof无侵入的使用

 编译gperftools,make install 然后设置so的位置 export LD_PRELOAD=/usr/local/lib64/libprofiler.so  最后执行 env CPUPROFILE=test-normal.prof ./testcpp 就有test-normal.prof结果了 剩下的就是 pprof --text testcpp ./test-normal.prof  或者 pprof --dot testcpp ./test-normal.prof  > test.dot 等等

pixel2 TWRP

 https://twrp.me/google/googlepixel2.html Download Links: Current and past versions of TWRP can be found at one of the mirrors below: Primary (Americas) Primary (Europe) Installation: If you already have TWRP installed: Download the latest zip and install the zip using TWRP. If you do not already have TWRP installed: Download both the img and the zip. You will need to have fastboot binaries and the correct drivers installed. Power off your device completely. Hold volume down and turn on the device. Your device should now be in the bootloader. Connect the device to your PC. Open a command window and run the following command from the proper location: fastboot boot path/to/twrp.img This will temporarily boot TWRP on your device. Use adb to push the zip onto your device: adb push path/to/twrp.zip / Go to install and browse to the zip and install the zip. The zip will install TWRP to both boot slots. Installing TWRP at this t...