MCPcopy Create free account
hub / github.com/google/gapid / SyncData

Function SyncData

gapis/resolve/synchronization_data.go:29–39  ·  view source on GitHub ↗

SyncData resolves and returns the sync.Data from the path p.

(ctx context.Context, p *path.Capture)

Source from the content-addressed store, hash-verified

27
28// SyncData resolves and returns the sync.Data from the path p.
29func SyncData(ctx context.Context, p *path.Capture) (*sync.Data, error) {
30 data, err := database.Build(ctx, &SynchronizationResolvable{Capture: p})
31 if err != nil {
32 return nil, err
33 }
34 s, ok := data.(*sync.Data)
35 if !ok {
36 return nil, log.Errf(ctx, nil, "Could not get synchronization data")
37 }
38 return s, nil
39}
40
41// Resolve builds a SynchronizationResolvable object for the given capture
42func (r *SynchronizationResolvable) Resolve(ctx context.Context) (interface{}, error) {

Callers 9

FindFunction · 0.85
ResolveMethod · 0.85
CmdFunction · 0.85
drawCallStatsFunction · 0.85
ResolveMethod · 0.85
buildResourcesFunction · 0.85
MemoryFunction · 0.85
EventsFunction · 0.85
ResolveMethod · 0.85

Calls 2

ErrfMethod · 0.80
BuildMethod · 0.65

Tested by

no test coverage detected