When people talk about splits of macronutrients (ex eating a third of protein, fat, carbs) is that by weight or by calories? Because if it's by weight then you're eating more calories of fat, and if by calories then you're eating less grams of fat.

Also what should my macronutrient splits be if I plan on doing cardio vs plan on doing strength? I've had some shitty running sessions lately and I think it's because diet but idk what to change or how much to change