You need a GPS / phone type device with a cadence sensor for this to work.
I just posted a step-by-step guide to graphing gear inches by time or distance on my blog. It comes out with stuff like this (for a 200km brevet):
For instance, it shows I shouldn't worry much about gearing over 90" on a future brevet bike (but want to get the range from 60-85" on a single chainring if possible). :thumbsup: