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

Support time and random native calls in trace debugger #541

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

zhelenskiy
Copy link
Collaborator

No description provided.

@zhelenskiy zhelenskiy requested a review from eupp February 20, 2025 16:51
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch 2 times, most recently from 5f3b23e to f9ed737 Compare February 20, 2025 18:50
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch 2 times, most recently from 0386148 to 7438d15 Compare February 27, 2025 03:28
@zhelenskiy zhelenskiy requested a review from eupp February 27, 2025 05:10
@zhelenskiy zhelenskiy requested a review from eupp February 28, 2025 00:21
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch 2 times, most recently from 9076cbe to f442e36 Compare February 28, 2025 17:25
…of the instrumentation side.

 Also, combine native calls handling with `beforeMethodCall`
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch from f442e36 to 98421d4 Compare February 28, 2025 22:01
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch from 405a114 to f1c3a34 Compare March 1, 2025 17:21

internal fun getDeterministicMethodDescriptorOrNull(methodCallInfo: MethodCallInfo) =
getDeterministicTimeMethodDescriptorOrNull(methodCallInfo)
?: getDeterministicRandomMethodDescriptorOrNull(methodCallInfo)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's use when here. It would also make it easier to extend this method for other trackers in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand you.

Copy link
Collaborator

@eupp eupp Mar 3, 2025

Choose a reason for hiding this comment

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

when {
  isTimeMehod(...) -> getDeterministicTimeMethodDescriptor(...)
  isRandomMethod(...) -> getDeterministicRandomMethodDescriptor(...)
  // we will add more cases here ...
  else -> null
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you want me to duplicate the checks inside the methods?

@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch from 4c3be80 to b5fc67e Compare March 4, 2025 00:21
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch from b5fc67e to 4a564d5 Compare March 4, 2025 00:41
@zhelenskiy zhelenskiy requested a review from eupp March 4, 2025 03:26
@zhelenskiy zhelenskiy force-pushed the native-calls-attempt2 branch from d1e0cf1 to 7855194 Compare March 4, 2025 03:30
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.

2 participants