Skip to content

Add JFR CPULoad and ThreadCPU event support #20186

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

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

thallium
Copy link
Contributor

@thallium thallium commented Sep 18, 2024

Depends on: eclipse-omr/omr#7491

@thallium
Copy link
Contributor Author

@tajila requesting your review

@tajila
Copy link
Contributor

tajila commented Oct 4, 2024

Im seeing negative numbers for Thread user mode CPU load

@thallium thallium force-pushed the cpuload branch 2 times, most recently from 9399d91 to 9f17f2e Compare October 7, 2024 18:37
@thallium thallium force-pushed the cpuload branch 3 times, most recently from 42e1d9d to 94218be Compare October 8, 2024 22:21
thallium added a commit to thallium/omr that referenced this pull request Oct 10, 2024
This function returns the user and system cpu time of the calling
thread.
Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
@thallium
Copy link
Contributor Author

Opend OMR PR and addressed previous state.

thallium added a commit to thallium/omr that referenced this pull request Oct 10, 2024
This function returns the user and system cpu time of the calling
thread.
Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
thallium added a commit to thallium/omr that referenced this pull request Oct 11, 2024
This function returns the user and system cpu time of the calling
thread.
Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
thallium added a commit to thallium/omr that referenced this pull request Oct 11, 2024
This function returns the user and system cpu time of the calling
thread.
Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
thallium added a commit to thallium/omr that referenced this pull request Oct 11, 2024
This function returns the user and system cpu time of the calling
thread. This new function is needed because the only way that we're
aware of to get the user CPU time of a thread is to use
getrusage(RUSAGE_THREAD, ...) which can only be called on the current
thread.

Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
thallium added a commit to thallium/omr that referenced this pull request Oct 11, 2024
This function returns the user and system cpu time of the calling
thread. This new function is needed because the only way that we're
aware of to get the user CPU time of a thread is to use
getrusage(RUSAGE_THREAD, ...) which can only be called on the current
thread.

Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
thallium added a commit to thallium/omr that referenced this pull request Oct 11, 2024
This function returns the user and system cpu time of the calling
thread. This new function is needed because the only way that we're
aware of to get the user CPU time of a thread is to use
getrusage(RUSAGE_THREAD, ...) which can only be called on the current
thread.

Related: eclipse-openj9/openj9#20186

Signed-off-by: Gengchen Tuo <[email protected]>
@thallium
Copy link
Contributor Author

Addressed previous feedbacks

@tajila
Copy link
Contributor

tajila commented Oct 31, 2024

@thallium Please rebase your changes

@thallium
Copy link
Contributor Author

Rebased

@tajila
Copy link
Contributor

tajila commented Nov 7, 2024

@thallium Please fix merge conflicts

@thallium
Copy link
Contributor Author

thallium commented Nov 7, 2024

Resolved merge conflict.

@tajila
Copy link
Contributor

tajila commented Nov 7, 2024

I had to add omrthread_get_thread_times to thread/exports.cmake for it to compile soccessfully

@tajila
Copy link
Contributor

tajila commented Nov 7, 2024

@keithc-ca Please take another look at this

@thallium
Copy link
Contributor Author

thallium commented Nov 7, 2024

Opened a PR to fix the missing export eclipse-omr/omr#7535

@tajila
Copy link
Contributor

tajila commented Nov 8, 2024

jenkins test sanity xlinux jdk17

@tajila
Copy link
Contributor

tajila commented Nov 11, 2024

@keithc-ca Do you have any more comments?

@keithc-ca
Copy link
Contributor

I'll try to find time today to have another look.

@thallium
Copy link
Contributor Author

Addressed feedbacks.

@tajila
Copy link
Contributor

tajila commented Nov 12, 2024

@keithc-ca Please take another look at this

@keithc-ca
Copy link
Contributor

Jenkins test sanity xlinux jdk17

@keithc-ca keithc-ca merged commit 6ae05c3 into eclipse-openj9:master Nov 12, 2024
6 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.

3 participants