SX-Aurora / Vftrace

GNU General Public License v3.0
10 stars 2 forks source link

Option to only profile MPI #14

Closed MeisterEule closed 3 years ago

MeisterEule commented 4 years ago

Some users are only interested in the MPI performance of their code, not the detailed function performance. In these cases, it is sufficient to profile MPI, as it can be achieved by linking Vftrace without function instrumentation (although then no output is generated). There should be an option to return from vftr_function_entry and _exit if no MPI function is present.

MeisterEule commented 3 years ago

This already works if you do not compile with -finstrument-functions, since MPI functions are always instrumented. I would not implement an additional option to obtain this functionality with instrumentation of all functions, in order to reduce code overhead.