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

offcputime improvements #316

Merged
merged 3 commits into from
Jan 20, 2016
Merged

offcputime improvements #316

merged 3 commits into from
Jan 20, 2016

Conversation

brendangregg
Copy link
Member

No description provided.

drzaeus77 added a commit that referenced this pull request Jan 20, 2016
@drzaeus77 drzaeus77 merged commit f50ca1f into iovisor:master Jan 20, 2016
int depth = 0;
// record previous thread sleep time
if (FILTER) {
pid = prev->pid;
Copy link
Member

Choose a reason for hiding this comment

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

nice. lower overhead.
do you think it makes sense to add key.pid,
since key.comm muxes all threads of given process into one
and for multi threaded apps the final numbers are hard to interpret.
Also '-p pid' is also useless for such apps, since it filters by kernel pid,
but user spaces guys think of tgid when they say pid

Copy link
Member Author

Choose a reason for hiding this comment

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

It's useful both ways. I'll add key.pid as a command line option. Usually I want just comm first, and then pid(tgid) if need be. One example where I really want comm is profiling software builds, which churn short-lived processes.

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.

3 participants