Run time statistics with tasks suspended before scheduler start

There are some other ways you can consider to achieve the same:

  1. You can create a task at the highest priority which does all the initialization. No other task can run until this initialization task is done because it is the highest priority task.
  2. If you are using timers, you can set configTIMER_TASK_PRIORITY to the highest priority and use Daemon Task Startup Hook for initialization.