def save_pstat(self, path):
stats = {}<EOL>for s in self.stats:<EOL><INDENT>if not s.exclude:<EOL><INDENT>stats.update(s.to_dict())<EOL><DEDENT><DEDENT>with open(path, '<STR_LIT:wb>') as f:<EOL><INDENT>marshal.dump(stats, f)<EOL><DEDENT>
Save the modified pstats file