博客 / 列表

黑暗森林 - postgresql profiling

場景 分析postgresql BE的性能數據,適應於使用GCC編譯的場景。 原理 藉助gprof工具,gcc編譯的時候,加入-pg選項,則gcc會自動將目標代碼中加入性能測試代碼。程序執行過程中,性能測試代碼會記錄程序的性能數據,程序結束後,保存性能數據文件。通過gprof工具可以解碼該文件,進行查看分析。如下例: gcc mytest.c -g -pg 説明: . 對於程序引用的外部庫,

performance , profile , postgresql

黑暗森林 - bs4

安裝pip yum -y install python-pip pip install --upgrade pip pip install beautifulsoup4

beautifulsoup , Python