'Load profiler data saved by profile/cProfile module'

def load_data(self, profdatafile):

    import pstats
    stats_indi = [pstats.Stats(profdatafile)]
    self.profdata = stats_indi[0]
    if (self.compare_file is not None):
        stats_indi.append(pstats.Stats(self.compare_file))
    map((lambda x: x.calc_callees()), stats_indi)
    self.profdata.calc_callees()
    self.stats1 = stats_indi
    self.stats = stats_indi[0].stats
