If cooking over an open fire, allow the fire to reduce to embers. Place whole tomatoes and unsliced onion close to the hot embers and rotate until charred and blistered. If using a gas or electric grill, preheat grill to high heat. Slice tomatoes and onion, then drizzle with olive oil and grill until slightly charred.