-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few minor updates to the tracing interface. #2081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build is failing as you need to re-run gazelle.
core/os/process/client.go
Outdated
@@ -29,7 +29,17 @@ import ( | |||
|
|||
var portPattern = regexp.MustCompile(`^Bound on port '(\d+)'$`) | |||
|
|||
type portWatcher struct { | |||
func NewPortWatcher(portChan chan<- string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: No need to break this signature across two lines
core/os/process/client.go
Outdated
} | ||
} | ||
|
||
type PortWatcher struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Godocs please
gapis/trace/desktop/trace.go
Outdated
@@ -144,7 +141,7 @@ func (t *DesktopTracer) GetTraceTargetNode(ctx context.Context, uri string, icon | |||
children[i] = filepath.Join(uri, children[i]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you need to deal with the target device slashes here too?
This allows you to specify environment variables in your ssh config, (instead of having to add them every time). It also exposes portWatcher for external use.
This allows you to specify environment variables in your
ssh config, (instead of having to add them every time).
It also exposes portWatcher for external use.