@contextlib.contextmanager<EOL><INDENT>def context(self, outdir, log_prefix):<DEDENT>
try:<EOL><INDENT>self._outdir = outdir<EOL>self._log_prefix = log_prefix<EOL>yield<EOL><DEDENT>finally:<EOL><INDENT>self._log_prefix = None<EOL>self._outdir = None<EOL><DEDENT>
Setup instance to extract metrics from the proper run

        :param outdir: run directory
        :param log_prefix: log filenames prefix