申请试用
HOT
登录
注册
 
Flamegraphs 201
0 点赞
0 收藏
0下载
苏寒
/
发布于
/
1559
人观看

关于作者
Agustin Gallego
Agustín joined Percona’s Support team in December 2013, after being part of the Administrative team from February 2012. He has previously worked as a Cambridge IT examinations Supervisor and as a Junior BI, SQL & C# developer. He is studying to get a Computer Systems Engineer degree at the Universidad de la República, in Uruguay. He lives in Montevideo, and when he is not working or studying he likes to spend his time playing music, reading and finding new places in the city for his favourite hobby: taking photographs using his old film cameras.

展开查看详情

1.

2.● ● ● ●

3.

4.

5.int main(){ void GetBook(Book book){ ... a = GetAuthor(book); GetBookList(book); pub = GetPublisher(book); ... p = GetPrints(book).toString(); } printf("%s published by %s [prints: %s]", void GetBookList(Book book){ a,pub,p); … ... while (book = } GetBook(book); ... }

6.

7.

8.

9.# capture perf record -a -g -F99 -p $(pgrep -x mysqld) -- sleep 60 # make it machine-readable perf script > s.out # fold it ./stackcollapse-perf.pl s.out > s.folded # graph it ./flamegraph.pl s.folded > s.svg

10.

11.● ○ ○ ○ ○ ● ● ● ●

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

0 点赞
0 收藏
0下载
相关文档