Hi Kumar;
My suggestion would be to use the TRACExxxx() commands. For example, say I want to know this overhead in my App when I press & run the "Search" picture button. In my STD Framework, I would start an App trace just before the "Search" CB as follows:
The "Profile On" CB then starts the trace as follows:
After running the Search CB, I would return to the Profiler and set the TraceOFF, as follows ...
Next, I use the PB IDE "Profiler Viewers" to review the trace file for what I need. For example:
There was a great presentation by John Strano at the Elevate 2021 conference about this technique.
FYI: https://www.appeon.com/conference/elevate-2021/live?id=333
HTH
Regards ... Chris