Allows us to collect profiles of the open source build using gprof.pull/70/head
parent
fbf4051ef2
commit
297fafa078
5 changed files with 40 additions and 3 deletions
@ -1,8 +1,15 @@ |
||||
# C/C++ build outputs |
||||
bins |
||||
coverage |
||||
deps |
||||
*.gcno |
||||
gens |
||||
libs |
||||
objs |
||||
|
||||
# gcov coverage data |
||||
coverage |
||||
*.gcno |
||||
|
||||
# profiler output |
||||
*.prof |
||||
|
||||
# python compiled objects |
||||
*.pyc |
||||
|
@ -0,0 +1,7 @@ |
||||
#include <gperftools/profiler.h> |
||||
|
||||
int main() { |
||||
ProfilerStart("/dev/null"); |
||||
ProfilerStop(); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue