You can use the tnfcollection command as an event action specifier, focusing the effect of TNF data collection on the places in your program that matter most. For example, set breakpoints before and after an interesting part of your program:
(prism all) tnfenable mpi_api (prism all) stop at foo {tnfcollection on} (prism all) stop at bar {tnfcollection off}
Prism collects TNF trace data only where you tell it to. For more information about event action specifiers, see " Actions in Events".