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 support for viewing inlining data for code objects in the object inspector #6031

Merged
merged 5 commits into from
Jul 17, 2023

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Jul 13, 2023

When running in JIT mode, the Dart VM will compile optimized code for functions that are "hot". One type of optimization that the VM can perform is inlining, where the code for another function called from the function being optimized can be inserted in-line in the newly optimized function to avoid the overhead of a function call.

This change adds support for viewing inlining data for optimized code. The address ranges of inlined functions are displayed in the new Inlined Functions table. Address ranges can include references to multiple Function objects that were optimized and inlined in the range. Profiler ticks that were collected in the inlined range are summed and displayed.

Example:

Screenshot 2023-07-13 at 12 55 57 PM

@bkonyi bkonyi merged commit f4e717c into flutter:master Jul 17, 2023
@bkonyi bkonyi deleted the code_inline branch July 17, 2023 13:44
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