v.io: v.io/x/ref/services/ben/archive Index | Files

package archive

import "v.io/x/ref/services/ben/archive"

Package archive defines the RPC interface for archiving benchmark results. nolint:golint

Index

Package Files

archive.vdl.go

Variables

var BenchmarkArchiverDesc rpc.InterfaceDesc = descBenchmarkArchiver

BenchmarkArchiverDesc describes the BenchmarkArchiver interface.

type BenchmarkArchiverClientMethods Uses

type BenchmarkArchiverClientMethods interface {
    // Archive saves results in 'runs' under the assumption that the
    // benchmarks were run on a machine whose configuration is defined by
    // 'scenario' and the were built from source code described by 'code'
    // (a commit hash of a repository, the manifest of a jiri project etc.)
    //
    // Returns a URL that can be used to browse the uploaded benchmark
    // results.
    Archive(_ *context.T, scenario ben.Scenario, code ben.SourceCode, runs []ben.Run, _ ...rpc.CallOpt) (string, error)
}

BenchmarkArchiverClientMethods is the client interface containing BenchmarkArchiver methods.

BenchmarkArchiver is the interface to store microbenchmark results.

type BenchmarkArchiverClientStub Uses

type BenchmarkArchiverClientStub interface {
    BenchmarkArchiverClientMethods
}

BenchmarkArchiverClientStub embeds BenchmarkArchiverClientMethods and is a placeholder for additional management operations.

func BenchmarkArchiverClient Uses

func BenchmarkArchiverClient(name string) BenchmarkArchiverClientStub

BenchmarkArchiverClient returns a client stub for BenchmarkArchiver.

type BenchmarkArchiverServerMethods Uses

type BenchmarkArchiverServerMethods interface {
    // Archive saves results in 'runs' under the assumption that the
    // benchmarks were run on a machine whose configuration is defined by
    // 'scenario' and the were built from source code described by 'code'
    // (a commit hash of a repository, the manifest of a jiri project etc.)
    //
    // Returns a URL that can be used to browse the uploaded benchmark
    // results.
    Archive(_ *context.T, _ rpc.ServerCall, scenario ben.Scenario, code ben.SourceCode, runs []ben.Run) (string, error)
}

BenchmarkArchiverServerMethods is the interface a server writer implements for BenchmarkArchiver.

BenchmarkArchiver is the interface to store microbenchmark results.

type BenchmarkArchiverServerStub Uses

type BenchmarkArchiverServerStub interface {
    BenchmarkArchiverServerStubMethods
    // DescribeInterfaces the BenchmarkArchiver interfaces.
    Describe__() []rpc.InterfaceDesc
}

BenchmarkArchiverServerStub adds universal methods to BenchmarkArchiverServerStubMethods.

func BenchmarkArchiverServer Uses

func BenchmarkArchiverServer(impl BenchmarkArchiverServerMethods) BenchmarkArchiverServerStub

BenchmarkArchiverServer returns a server stub for BenchmarkArchiver. It converts an implementation of BenchmarkArchiverServerMethods into an object that may be used by rpc.Server.

type BenchmarkArchiverServerStubMethods Uses

type BenchmarkArchiverServerStubMethods BenchmarkArchiverServerMethods

BenchmarkArchiverServerStubMethods is the server interface containing BenchmarkArchiver methods, as expected by rpc.Server. There is no difference between this interface and BenchmarkArchiverServerMethods since there are no streaming methods.

Package archive imports 4 packages (graph) and is imported by 8 packages. Updated 2020-10-17. Refresh now. Tools for package owners.