parse context switches