Skip to content

Add sample labels flag to perf_to_profile#197

Open
mmcloughlin wants to merge 1 commit intogoogle:masterfrom
mmcloughlin:add-sample-labels-flag
Open

Add sample labels flag to perf_to_profile#197
mmcloughlin wants to merge 1 commit intogoogle:masterfrom
mmcloughlin:add-sample-labels-flag

Conversation

@mmcloughlin
Copy link
Copy Markdown

Add a -l option to configure sample labels via the perf_to_profile CLI tool.

Fixes #104

Add a -l option that accepts a comma-separated list of sample label
names (pid, tid, comm, etc.) to include in the output profile. This
exposes the existing SampleLabels enum through the CLI, which was
previously only accessible programmatically.

Fixes google#104
@aalexand
Copy link
Copy Markdown
Collaborator

@mmcloughlin Sorry, we don't accept contributions to this repo right now, it's a one-way mirror.

@mmcloughlin
Copy link
Copy Markdown
Author

@mmcloughlin Sorry, we don't accept contributions to this repo right now, it's a one-way mirror.

Oh, I missed that. It's a bit confusing because there are merged PRs on this repository.

Would you be able to implement this feature internally?

@aalexand
Copy link
Copy Markdown
Collaborator

It's a bit confusing because there are merged PRs on this repository.

Those are mirrored. I think they look differently because when multiple changes are mirrored at once the PR name becomes more generic.

Would you be able to implement this feature internally?

In theory yes, in practice I don't know when exactly this will happen. Because priorities, sorry. I agree it's a useful change - we have a version of it internally, which is unfortunately a distinct piece of code because historical reasons.

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.

Could we get a command-line option for setting kPidAndTidLabels?

2 participants