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
0c8ca060
Commit
0c8ca060
authored
Apr 28, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve profiler document
parent
3a7e8ec6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
cpu_profiler.md
docs/cn/cpu_profiler.md
+4
-1
heap_profiler.md
docs/cn/heap_profiler.md
+2
-1
sys_futex.cpp
src/bthread/sys_futex.cpp
+1
-0
No files found.
docs/cn/cpu_profiler.md
View file @
0c8ca060
...
...
@@ -94,4 +94,7 @@ Total: 2954 samples
# MacOS的额外配置
在MacOS下,gperftools中的perl pprof脚本会丢失函数名字,解决办法是需要自行下载
[
standalone pprof
](
https://github.com/google/pprof
)
,并把下载的pprof二进制文件路径写入环境变量GOOGLE_PPROF_BINARY_PATH中,profiler才能正常工作。
在MacOS下,gperftools中的perl pprof脚本无法将函数地址转变成函数名,解决办法是:
1.
安装
[
standalone pprof
](
https://github.com/google/pprof
)
,并把下载的pprof二进制文件路径写入环境变量GOOGLE_PPROF_BINARY_PATH中
2.
安装llvm-symbolizer(将函数符号转化为函数名),直接用brew安装即可:
`brew install llvm`
docs/cn/heap_profiler.md
View file @
0c8ca060
...
...
@@ -105,4 +105,5 @@ brpc还提供一个类似的growth profiler分析内存的分配去向(不考
# MacOS的额外配置
在MacOS下,gperftools中的perl pprof脚本会丢失函数名字,解决办法是需要自行下载
[
standalone pprof
](
https://github.com/google/pprof
)
,并把下载的pprof二进制文件路径写入环境变量GOOGLE_PPROF_BINARY_PATH中,profiler才能正常工作。
1.
安装
[
standalone pprof
](
https://github.com/google/pprof
)
,并把下载的pprof二进制文件路径写入环境变量GOOGLE_PPROF_BINARY_PATH中
2.
安装llvm-symbolizer(将函数符号转化为函数名),直接用brew安装即可:
`brew install llvm`
src/bthread/sys_futex.cpp
View file @
0c8ca060
...
...
@@ -107,6 +107,7 @@ int futex_wake_private(void* addr1, int nwake) {
std
::
unique_lock
<
pthread_mutex_t
>
mu
(
s_futex_map_mutex
);
auto
it
=
s_futex_map
->
find
(
addr1
);
if
(
it
==
s_futex_map
->
end
())
{
mu
.
unlock
();
return
0
;
}
SimuFutex
&
simu_futex
=
it
->
second
;
...
...
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