【正文】
? 支持 DMP文件分析 ? 支持二次開發(fā) 行為準(zhǔn)則:尊重 并行 認(rèn)真 檢查 改善 重用 反饋 簡(jiǎn)單 勇氣 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 25 Valgrind ? Memcheck is a memory error detector. It helps you make your programs, particularly those written in C and C++, more correct. ? Cachegrind is a cache and branchprediction profiler. It helps you make your programs run faster. ? Callgrind is a callgraph generating cache profiler. It has some overlap with Cachegrind, but also gathers some information that Cachegrind does not. ? Helgrind is a thread error detector. It helps you make your multithreaded programs more correct. ? DRD is also a thread error detector. It is similar to Helgrind but uses different analysis techniques and so may find different problems. ? Massif is a heap profiler. It helps you make your programs use less memory. ? DHAT is a different kind of heap profiler. It helps you understand issues of block lifetimes, block utilisation, and layout inefficiencies. 行為準(zhǔn)則:尊重 并行 認(rèn)真 檢查 改善 重用 反饋 簡(jiǎn)單 勇氣 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 29 ValgrindHelgrind ? unlocking a notlocked mutex ? unlocking a mutex held by a different thread ? destroying an invalid or a locked mutex ? recursively locking a nonrecursive mutex ? when a POSIX pthread function fails with an error code that must be handled ? when a thread exits whilst still holding locked locks 行為準(zhǔn)則:尊重 并行 認(rèn)真 檢查 改善 重用 反饋 簡(jiǎn)單 勇氣 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 企業(yè)價(jià)值觀 客戶第一、艱苦奮斗、陽光溝通、 團(tuán)隊(duì)協(xié)作、擁抱變化、學(xué)習(xí)成長(zhǎng) 行為準(zhǔn)則 尊重、簡(jiǎn)單、重用、檢查、并行 勇氣、反饋、改善、認(rèn)真、責(zé)任 行為準(zhǔn)則:尊重 并行 認(rèn)真 反饋 重用 改善 檢查 認(rèn)真 并行 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 31 參考資源 行為準(zhǔn)則:尊重 勇氣 簡(jiǎn)單 反饋 重用 改善 檢查 認(rèn)真 并行 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 27 Valgrind Example: valgrind –tool=memcheck leakcheck=full xml=yes xmlfile= myprog valgrind –tool=helgrind xml=yes xmlfile= myprog 行為準(zhǔn)則:尊重 勇氣 簡(jiǎn)單 反饋 重用 改善 檢查 認(rèn)真 并行 責(zé)任 價(jià)值觀:客戶第一 | 艱苦奮斗 | 陽光溝通 | 團(tuán)隊(duì)協(xié)作 | 擁抱變化 | 學(xué)習(xí)成長(zhǎng) 23