Hi,
> error message stating that I have duplicate routines.
I think this is expected.
According to my understanding of the https://support.smartbear.com/aqtime/docs/profiling-with/set-up-project/what-to-profile/triggers/about.html help topic (How Triggers Work paragraph):
"When an on-trigger routine begins executing, it saves the current profiling status for its thread and enables profiling for that thread. This still applies to everything it calls. When it reaches the end of its execution (after perhaps hundreds of calls, sub-calls and sub-sub-calls), it restores the thread’s profiling status as it found it."
So, I think that you should disable all profiling (like it is on the screenshot you've provided), then create the On-trigger and add the target routine to it and start profiling run.
Profiling should start on function enter and stop on exit.
Summarizing: Delete Off-trigger and do profiling run. I hope you should get desired result.