fix initial condition on marking segment
add selector by regex
cleanup
add calculate branch profile of areatrees