(self, pb, basename)
| 303 | self.profiler._write_profile(filename) # pylint: disable=protected-access |
| 304 | |
| 305 | def _dump_file(self, pb, basename): |
| 306 | if not gfile.Exists(self._profiler_dir): |
| 307 | gfile.MakeDirs(self._profiler_dir) |
| 308 | with gfile.Open(os.path.join(self._profiler_dir, basename), 'w') as f: |
| 309 | f.write('%s' % pb) |
| 310 | |
| 311 | @contextlib.contextmanager |
| 312 | def _new_step(self): |
no test coverage detected