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

Add omrthread_get_self_thread_time() #7491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thallium
Copy link
Contributor

This function returns the user and system cpu time of the calling thread.
Related: eclipse-openj9/openj9#20186

thallium added a commit to thallium/openj9 that referenced this pull request Oct 10, 2024
@@ -0,0 +1,41 @@
#if defined (LINUX)
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is specific to linux, it needs to be in the linux dir not common

Copy link
Contributor

Choose a reason for hiding this comment

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

youll still have to add a common implementation, even if all it does is return an error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm trying to make it work for all the platforms

@tajila
Copy link
Contributor

tajila commented Oct 10, 2024

@babsingh Please review

@0xdaryl
Copy link
Contributor

0xdaryl commented Oct 10, 2024

Minor nit: please fix the spelling of "thread" in your commit and PR titles. Thanks.

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 thallium changed the title Add omrthread_get_self_thraed_time() Add omrthread_get_self_thread_time() Oct 10, 2024
@thallium
Copy link
Contributor Author

Fixed spelling

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

Successfully merging this pull request may close these issues.

3 participants