tree: da91adba00ae1524584b286f1827c3092a4ad474 [path history] [tgz]
  1. gapis/
  2. atoms_handler.go
  3. README.md
  4. rpc_server.go
  5. schema_handler.go
  6. server.go
server/README.md

server


import "android.googlesource.com/platform/tools/gpu/server"

Package server implements the rpc gpu debugger service, queriable by the clients, along with some helpers exposed via an http listener.

Usage

func Run

func Run(config Config, rpcReady chan<- struct{})

Run listens on the HTTP and RPC TCP ports given in config, initializes the resource database, the replay manager and handles HTTP and RPC requests on incoming connections. If not nil, the rpcReady channel is closed as soon as incoming RPC requests can start being issued.

type Config

type Config struct {
	HttpAddress string
	RpcAddress  string
	DataPath    string
	LogfilePath string
}