Inflation is measured by the cost a a standard basket of goods that includes food items. Well informed people disagree over whether or not that basket is representative or not, but inflation is a least supposed to be a measure of exactly what you are talking about.