How to extend auto tuning

How can I extend auto tuning such that it can be used to choose the ‘best’ variant for a metric other than time?