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

experiment to query stack sizes for jit #2216

Closed
wants to merge 1 commit into from

Conversation

yamt
Copy link
Collaborator

@yamt yamt commented May 15, 2023

No description provided.

auto name = MF.getName();
auto MFI = &MF.getFrameInfo();
size_t sz = MFI->getStackSize();
LOG_VERBOSE("func %.*s stack %zu", name.size(), name.data(), sz);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this PR is just for a demonstration for now.
it outputs something like the following.

[09:06:54:689 - 70000A7C1000]: func aot_func#754_wrapper stack 0
[09:06:54:218 - 70000A7C1000]: func aot_func#758 stack 104
[09:06:54:135 - 70000A7C1000]: func aot_func#762 stack 88
[09:06:54:303 - 70000A7C1000]: func aot_func#766 stack 56
[09:06:54:190 - 70000AFC4000]: func aot_func#770 stack 88
[09:06:54:502 - 70000AFC4000]: func aot_func#770_wrapper stack 0                
[09:06:54:711 - 70000AFC4000]: func aot_func#774 stack 120     
[09:06:54:278 - 70000AFC4000]: func aot_func#778 stack 184
[09:06:54:339 - 70000AFC4000]: func aot_func#782 stack 104
[09:06:54:877 - 70000AFC4000]: func aot_func#786 stack 184
[09:06:54:192 - 70000AFC4000]: func aot_func#786_wrapper stack 0
[09:06:54:775 - 70000AFC4000]: func aot_func#790 stack 120
[09:06:54:741 - 70000AFC4000]: func aot_func#794 stack 104
[09:06:54:191 - 70000AFC4000]: func aot_func#798 stack 0
[09:06:54:074 - 700009F92000]: func aot_func#802 stack 72

@yamt
Copy link
Collaborator Author

yamt commented Jun 1, 2023

moved to #2244

@yamt yamt closed this Jun 1, 2023
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.

1 participant