In a shallow pan, heat the oil over medium-high heat. Add the cumin seed and cook, stirring, for about 15 seconds, until slightly darkened and fragrant. Add the onion and cinnamon. Cook, stirring frequently, for 5 to 6 minutes, until the onion has taken on a bit of brown.