Slice the onions thinly, then dump them in the well of a slow cooker with the butter, salt, and pepper. Put the machine on low, cover it, and come back 12 hours later. All the onions will be beautifully brown and soft. There will be a liquid that needs to be evaporated. Leave the top slightly ajar and let them keep cooking for another 3 hours. You only need about 1/2 cup of these onions, just freeze the rest.
Make the Tart
Preheat your oven to 500 F/ 260 C. It's going to take a while to get that hot, so be aware of that.
Roll the dough out thinly. You can use a pizza pan if you want, or you can put parchment paper on a pizza peel and put the dough on that.
Spread the sour cream on the pizza dough and cover it loosely with some of the parmesan.
Put the onions all around with the swiss cheese, ham, mushrooms, and olives, if using. Cover with more grated parmesan.
Bake for 15 minutes, checking at 12 minutes, or until the crust has started to brown and the cheese has all melted.
Scan for full nutrition info and step-by-step photos.