How i know the number of activations of a task

I need to know some information about a task, how i know the number of activations?

If you mean how many times the task has been switched in then you could use a trace macro like traceTASK_SWITCHED_IN()