You can use a native compiler option to include performance hooks in your generated code.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.