alert() triggers a task which requires user input to be completed, so it is special in that regard. We could add a flag to indicate 'tasks blocked on user input'. But perhaps this is not needed once we can use attribution from the JS Self Profiling API.