@classmethod<EOL><INDENT>def from_dict(cls, d):<DEDENT>
stats = []<EOL>for (filename, lineno, name), stat_values in d.iteritems():<EOL><INDENT>if len(stat_values) == <NUM_LIT:5>:<EOL><INDENT>ncalls, ncall_nr, total_time, cum_time, subcall_stats = stat_values<EOL><DEDENT>else:<EOL><INDENT>ncalls, ncall_nr, total_time, cum_time = stat_values<EOL>subcall_stats = None<EOL><DEDENT>stat = cProfileFuncStat(filename, lineno, name, ncalls, ncall_nr, total_time, cum_time, subcall_stats)<EOL>stats.append(stat)<EOL><DEDENT>return stats<EOL>
Used to create an instance of this class from a pstats dict item