- while cooking, you weigh every ingredient. Either I just take photos of the scale with my phone, or I write it on a sheet of paper.
- when cooking is done, you weigh the total food (easiest if you know the weight of your pots)
- when eating, you weigh your portions
After some time, you realise that you need to be precise for some things (oil, butter) but can just guess or ignore some things (eg. onions and miso have so little calories that you really don't need to weigh them).
If it's a dish like Lasagna, you don't even need to weigh it at the end, just estimate what fraction of the dish your serving is.