tools/perf/core/results_processor/processor_test.py
def CreateDiagnosticsArtifact(self, **diagnostics):
    """Create an artifact with diagnostics."""
    with tempfile.NamedTemporaryFile(dir=self.intermediate_dir,
                                     delete=False,
                                     mode='w') as artifact_file:
      json.dump({'diagnostics': diagnostics}, artifact_file)
    return processor.DIAGNOSTICS_NAME, testing.Artifact(artifact_file.name)
Create an artifact with diagnostics.
Create an artifact with diagnostics.
Create an artifact with diagnostics .
def CreateDiagnosticsArtifact(self, **diagnostics):
    with tempfile.NamedTemporaryFile(dir=self.intermediate_dir,
                                     delete=False,
                                     mode='w') as artifact_file:
      json.dump({'diagnostics': diagnostics}, artifact_file)
    return processor.DIAGNOSTICS_NAME, testing.Artifact(artifact_file.name)
def CreateDiagnosticsArtifact ( self , ** diagnostics ) : with tempfile . NamedTemporaryFile ( dir = self . intermediate_dir , delete = False , mode = 'w' ) as artifact_file : json . dump ( { 'diagnostics' : diagnostics } , artifact_file ) return processor . DIAGNOSTICS_NAME , testing . Artifact ( artifact_file . name )
Create an artifact with diagnostics.
Create an artifact with diagnostics .
"""Create an artifact with diagnostics."""
self