Skip to content

Commit

Permalink
Tracing now needs gapis.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Feb 15, 2019
1 parent a14f373 commit 685d9b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/robot/scheduler/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (s schedule) doTrace(ctx context.Context, subj *monitor.Subject, tools *bui
input := &trace.Input{
Subject: subj.Id,
Obb: subj.Obb,
Gapis: tools.Host.Gapis,
Gapit: tools.Host.Gapit,
GapidApk: androidTools.GapidApk,
Package: s.pkg.Id,
Expand Down
8 changes: 8 additions & 0 deletions test/robot/trace/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func doTrace(ctx context.Context, action string, in *Input, store *stash.Client,
return nil, err
}

gapis, err := extractedLayout.Gapis(ctx)
if err != nil {
return nil, err
}

gapit, err := extractedLayout.Gapit(ctx)
if err != nil {
return nil, err
Expand All @@ -137,6 +142,9 @@ func doTrace(ctx context.Context, action string, in *Input, store *stash.Client,
if err := store.GetFile(ctx, in.Subject, subject); err != nil {
return nil, err
}
if err := store.GetFile(ctx, in.Gapis, gapis); err != nil {
return nil, err
}
if err := store.GetFile(ctx, in.Gapit, gapit); err != nil {
return nil, err
}
Expand Down
2 changes: 2 additions & 0 deletions test/robot/trace/trace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import "core/os/device/device.proto";
message Input {
// Subject is the stash id of the trace subject.
string subject = 1;
// Gapis is the stash id of the graphics server tool to use.
string gapis = 8;
// Gapit is the stash id of the graphics analysis tool to use.
string gapit = 2;
// GapidApk is the stash id of the gapid.apk to use.
Expand Down

0 comments on commit 685d9b3

Please sign in to comment.