'Non-threaded collection of performance data:
This method allows you to specify the total period for which you would
like to run the Query, and the time interval between individual
runs.  The collected data is stored in query.curresults at the
_end_ of the run.  The pathnames for the query are stored in
query.curpaths.
e.g.:
query.collectdatafor(30,2)
Will collect data for 30seconds at 2 second intervals'

def collectdatafor(self, totalperiod, period=1):

    tempresults = []
    try:
        self.open()
        for ind in xrange((totalperiod / period)):
            tempresults.append(self.collectdata())
            time.sleep(period)
        self.curresults = tempresults
    finally:
        self.close()
