Skip to content

Commit

Permalink
[Trifocal+P2Pt] readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Nov 13, 2023
1 parent 6255965 commit ed3903b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,18 @@ before running.
https://github.com/gperftools/gperftools
https://gperftools.github.io/gperftools/cpuprofile.html

Runs the program on real CPU. To use it, install it with homebrew, then link the
Runs the program on real CPU rather than a simulation.
This is a surprisingly fast profiler. Basically no overhead.

To use it, install it with homebrew, then link the
program with libprofiler (add -Lpath_to_installed_gperftools -lprofiler) and run
with CPUPROFILE environment variable set to some filename (CPUPROFILE=profile01
./the_program). It will profile the program using interval timer (setitimer) and
with CPUPROFILE environment variable set to some filename

`CPUPROFILE=/tmp/prof ./minus-chicago -g`

I use `-L/usr/loca/lib -lprofiler` on `MINUS_EXTRA_CMAKE_EXE_LINKER_FLAGS`

It will profile the program using interval timer (setitimer) and
output profiling data to the filename, defined in CPUPROFILE env var. Then you
can view profile data in command-line or with svg/web browser using pprof perl
script from gperftools (pprof ./the_program profile01).
Expand Down

0 comments on commit ed3903b

Please sign in to comment.