-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Remove unused Scheduler sampling profiler #20833
Remove unused Scheduler sampling profiler #20833
Conversation
@@ -217,17 +176,11 @@ function workLoop(hasTimeRemaining, initialTime) { | |||
currentTask.callback = null; | |||
currentPriorityLevel = currentTask.priorityLevel; | |||
const didUserCallbackTimeout = currentTask.expirationTime <= currentTime; | |||
markTaskRun(currentTask, currentTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had some unwrapped profiling method calls. Wonder if that was costing us bytes?
const continuationCallback = callback(didUserCallbackTimeout); | ||
currentTime = getCurrentTime(); | ||
if (typeof continuationCallback === 'function') { | ||
currentTask.callback = continuationCallback; | ||
markTaskYield(currentTask, currentTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto for calls to markTaskYield
.
Comparing: 8fa0ccc...8e50058 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
72f3857
to
d01743c
Compare
d01743c
to
8e50058
Compare
Turns out this is being used within FB so I'm going to close this PR. |
Stacks on top of #20832
Removes Scheduler's integrated sampling profiler. I'm not aware of this being used within FB so we might as well kill it.
If I'm wrong and it's in use though, happy to just close this PR.
Alternative to #20831.