We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44056f commit 907bc2bCopy full SHA for 907bc2b
1 file changed
section4/gperf.cpp
@@ -0,0 +1,17 @@
1
+// Copyright (c) 2020 by Chrono
2
+//
3
+// g++ gperf.cpp -std=c++11 -lprofiler -ltcmalloc -o a.out;./a.out
4
+// g++ gperf.cpp -std=c++14 -lprofiler -ltcmalloc -o a.out;./a.out
5
+
6
+#include <iostream>
7
8
+#include <gperftools/profiler.h>
9
+#include <gperftools/heap-profiler.h>
10
11
+using namespace std;
12
13
14
+int main()
15
+{
16
+ cout << "gperf demo" << endl;
17
+}
0 commit comments