HPA agents record the entry point of the module, for the scheduled tasks, by default this is the main task. But for more accurate statistics, you are advised to add custom entry point for your schedule task.

Most of the time, when a scheduled task is multithreaded, it’s interesting to link the thread to the main task. Otherwise the default configuration is enough.