Like others mentioned, I wouldn’t try it with mushrooms as they aren’t that nutritionally dense relative to the risks. But for plants, I’d do it as soon as I felt the need to eat something. See Into the Wild for an example of a guy whose life it could’ve saved.