prio: implement profiling