Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-03-06 16:31:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4061f0db584e17f8ff09d04285f2384219d782fc
4061f0db
1 parent
72399637
refine the profiler
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
trunk/research/gperftools/heap-profiler/heap_profiler.cc
trunk/research/gperftools/heap-profiler/heap_profiler.cc
查看文件 @
4061f0d
...
...
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
set the pprof path if not set:
export PPROF_PATH=`pwd`/../../../objs/pprof
to do mem profile:
make && rm -f srs.*.heap && env ./heap_profiler
make && rm -f srs.*.heap && env
HEAPPROFILE=./srs
./heap_profiler
$PPROF_PATH --text heap_profiler ./*.heap
*/
#include <stdio.h>
...
...
@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
signal
(
SIGINT
,
handler
);
// must start profiler manually.
HeapProfilerStart
(
"srs"
);
HeapProfilerStart
(
NULL
);
memory_alloc_profile
();
// not neccessary to call stop.
...
...
请
注册
或
登录
后发表评论