Automatically profile tests