Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6e47039e
Commit
6e47039e
authored
Apr 30, 2018
by
James Ge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused bold quotation
parent
fc8363a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cpu_profiler.md
docs/cn/cpu_profiler.md
+1
-1
No files found.
docs/cn/cpu_profiler.md
View file @
6e47039e
...
...
@@ -3,7 +3,7 @@ brpc可以分析程序中的热点函数。
# 开启方法
1.
链接
`libtcmalloc_and_profiler.a`
1.
这么写也开启了tcmalloc,不建议单独链接cpu profiler而不链接tcmalloc,可能越界访问导致
[
crash
](
https://github.com/gperftools/gperftools/blob/master/README#L226
)
**。**
可能由于tcmalloc不及时归还内存,越界访问不会crash。
1.
这么写也开启了tcmalloc,不建议单独链接cpu profiler而不链接tcmalloc,可能越界访问导致
[
crash
](
https://github.com/gperftools/gperftools/blob/master/README#L226
)
.
可能由于tcmalloc不及时归还内存,越界访问不会crash。
2.
如果tcmalloc使用frame pointer而不是libunwind回溯栈,请确保在CXXFLAGS或CFLAGS中加上
`-fno-omit-frame-pointer`
,否则函数间的调用关系会丢失,最后产生的图片中都是彼此独立的函数方框。
2.
定义宏BRPC_ENABLE_CPU_PROFILER, 一般加入编译参数-DBRPC_ENABLE_CPU_PROFILER。
3.
如果只是brpc client或没有使用brpc,看
[
这里
](
dummy_server.md
)
。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment