Time Tracing

I would like to know the the sequence of all task state, is it possible to trace it?
Need to verify if the task really goes in wait state and what the task which executes next and its time duration.
Please suggest me the proper method to evaluate above points.

Regards,
Kishor