在gperftools的文檔中,就簡單的說了下面的方式來進行profile: gcc [...] -o myprogram -lprofiler CPUPROFILE=/tmp/profile ./myprogram.
確定! 回上一頁