I'm using a free piece of software on an iPad called MyFitnessPal to track my diet and exercise. I got started with this when I had to stick to a very low sodium diet to control hypertension. That's not necessary now that I'm on spironolactone, but I do need to limit potassium and make sure I get enough sodium. Once I got started, I found myself watching the other things the software tracked, like total sugar, and the ratio of calories between carbs, fats, and proteins. It's all tweakable, but the defaults appear to match the current National Institutes of Health guidelines.
The software lets me save meals that I often prepare, so frequent stuff is really easy to enter. I can tweak one or two variations after I enter a meal pretty easily. I was able to set weight goals, activity levels, and whether I wanted to lose or maintain weight, which the software uses to set calorie targets. I also log my daily workouts and water intake. (Yeah, I might be OCD, but I don't worry about it. Which means I'm probably not OCD. But I should take some time to think about it...)
Anyway, I've been engaging in this sort of tracking for around 3 years now. I dropped from 215 to 170 pounds by trying hard to follow a DASH diet for hypertension and working out, but it wasn't doing that much for the blood pressure, so I switched to tracking software, which was an eye opener regarding where the sodium came from. That got me from 170 to 140 pounds. The MyFitnessPal free version is probably the best thing I've run across, as there is an enormous number of foods already in the database.
I actually have to pick and choose among multiple entries for the foods I want, as not all entries include the sodium and potassium levels I need. Fortunately, once I have used something in the log it shows up as a suggested item when I start typing a food in. That makes it relatively fast, along with my collection of saves meals and recepies.
I guess this sounds like a bit of a plug, but it is what works for me.