Skip to content
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

Trace closing of tracing fds by type #4854

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

pierricgimmig
Copy link
Collaborator

A major pain point in the Orbit workflow is "waiting for the capture to be finalized".
Add tracing to better understand where time is spent during that step.

image

Add better introspection for capture finalization:

closing_fds

Copy link
Collaborator

@florian-kuebler florian-kuebler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -299,7 +299,7 @@ void TracerImpl::AddUprobesFileDescriptors(
} else {
uprobes_ids_.insert(stream_id);
}
tracing_fds_.push_back(fd);
tracing_fds_by_type_["uprobe"].push_back(fd);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add constants for the strings? like constexpr kUprobeId = "uprobe". Same below.

@pierricgimmig pierricgimmig merged commit b1c3258 into google:main Oct 17, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants