Skip to content

Commit 5770edb

Browse files
committed
gperf
1 parent a37d0b3 commit 5770edb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

section4/gperf.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
// Copyright (c) 2020 by Chrono
22
//
3+
// sudo cp src/pprof /usr/bin
4+
//
5+
// pprof --text ./a.out case1.perf > case1.txt
6+
// pprof --pdf ./a.out case1.perf >case1.pdf
7+
// pprof --svg ./a.out case1.perf >case1.svg
8+
// pprof --collapsed ./a.out case1.perf > case1.cbt
9+
// ./flamegraph.pl case1.cbt > fg.svg
10+
//
311
// g++ gperf.cpp -std=c++14 -lprofiler -ltcmalloc -g -O0 -o a.out;./a.out
412

513
#include <cassert>

0 commit comments

Comments
 (0)