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

[JSON Trace Profile] Correctly identify GC thread #20299

Closed

Conversation

saraadams
Copy link
Contributor

@saraadams saraadams commented Nov 23, 2023

Currently, the thread that includes the garbace colleciton notification events is not correctly identified.
This means that in the JSON trace profile, the thread:

  • is not renamed, as desired.
  • is not sorted towards the top, as desired.

The thread is identified by its name, which has changed from "Service Thread" to "Notification Thread". This change updates the profile code accordingly.

In response to #18548 (comment)
Fixes EngFlow/bazel_invocation_analyzer#110

Currently, the thread that includes the garbace colleciton notification
events is not correctly identified.
This means that in the JSON trace profile, the thread:

* is not renamed, as desired.
* is not sorted towards the top, as desired.

The thread is identified by its name, which has changed from "Service Thread" to
"Notification Thread". This change updates the profile code accordingly.

In response to bazelbuild#18548 (comment)
@github-actions github-actions bot added team-Performance Issues for Performance teams awaiting-review PR is awaiting review from an assigned reviewer labels Nov 23, 2023
@saraadams
Copy link
Contributor Author

@meisterT Here's a suggested patch for #18548 (comment)

@saraadams
Copy link
Contributor Author

@tjgq Can you also take a look at this one?

@saraadams
Copy link
Contributor Author

@tjgq Can you also take a look at this one?

This would also be good to get into 7, as it fixes another regression.

@fmeum
Copy link
Collaborator

fmeum commented Nov 27, 2023

@bazel-io flag

@tjgq
Copy link
Contributor

tjgq commented Nov 27, 2023

@bazel-io fork 7.0.0

@keertk keertk added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Nov 27, 2023
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Nov 27, 2023
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Nov 27, 2023
Currently, the thread that includes the garbage collection notification events is not correctly identified.
This means that in the JSON trace profile, the thread:

* is not renamed, as desired.
* is not sorted towards the top, as desired.

The thread is identified by its name, which has changed from "Service Thread" to "Notification Thread". This change updates the profile code accordingly.

In response to bazelbuild#18548 (comment)
Fixes EngFlow/bazel_invocation_analyzer#110

Closes bazelbuild#20299.

PiperOrigin-RevId: 585639069
Change-Id: Id4aadb5451839b5be07ac98428f9367764ff46ce
keertk pushed a commit that referenced this pull request Nov 27, 2023
Currently, the thread that includes the garbage collection notification
events is not correctly identified.
This means that in the JSON trace profile, the thread:

* is not renamed, as desired.
* is not sorted towards the top, as desired.

The thread is identified by its name, which has changed from "Service
Thread" to "Notification Thread". This change updates the profile code
accordingly.

In response to
#18548 (comment)
Fixes EngFlow/bazel_invocation_analyzer#110

Closes #20299.

Commit
13829ed

PiperOrigin-RevId: 585639069
Change-Id: Id4aadb5451839b5be07ac98428f9367764ff46ce

Co-authored-by: Sara Adams <sara@engflow.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Performance Issues for Performance teams
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find GC thread in newer profiles
4 participants