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

Change thread names in the trace #547

Open
ndkoval opened this issue Feb 25, 2025 · 4 comments
Open

Change thread names in the trace #547

ndkoval opened this issue Feb 25, 2025 · 4 comments
Assignees
Milestone

Comments

@ndkoval
Copy link
Collaborator

ndkoval commented Feb 25, 2025

Change the main thread name from "Thread 1" to "Main Thread" and enumerate user threads starting from 1.

Current output:

|--------------------------------|
| Thread 1 | Thread 2 | Thread 3 |
|--------------------------------|
|    ...   |    ...   |    ...   |
|--------------------------------|

Desired output:

|-----------------------------------|
| Main Thread | Thread 1 | Thread 2 |
|-----------------------------------|
|     ...     |    ...   |    ...   |
|-----------------------------------|
@eupp
Copy link
Collaborator

eupp commented Feb 25, 2025

Don't we want to just print thread names, i.e., Thread.name ?
https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#getName--

@ndkoval
Copy link
Collaborator Author

ndkoval commented Feb 25, 2025

@eupp, this is a good suggestion. Should we then make the thread name consistent across runs?

@eupp
Copy link
Collaborator

eupp commented Feb 26, 2025

Should we then make the thread name consistent across runs?

I believe with deterministic hash codes this problem should be solved, but we need to try and see.

@ndkoval ndkoval changed the title Change the main thread name from "Thread 1" to "Main Thread" and enumerate user threads starting from 1 Change thread names in the trace Feb 26, 2025
@ndkoval
Copy link
Collaborator Author

ndkoval commented Feb 26, 2025

@eupp we do not have deterministic hash codes for gpmc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants