YoshihiroIto / JitPad

On the fly disassemble C# code based on JitDasm
MIT License
125 stars 9 forks source link

"Tiered JIT" option only shows the first tier of the JIT. #1

Open ghost opened 4 years ago

ghost commented 4 years ago

Currently, enabling "Tiered JIT" will only show you the first tier of the tiered JIT.

It'd be handy to be able to choose the tier you want to inspect.

YoshihiroIto commented 4 years ago

Thanks for your feedback.

I thought your idea was great, so I looked again at Tiered Compilation documents.However, I did not find a way to choose tier.

Do you know how?

ghost commented 4 years ago

From what it seems currently the JIT doesn't expose a way to request a method to be compiled in a specific tier, so this idea will most likely have to be put on hold until they expose an API for it.

You can mark a method with [MethodImpl(MethodImplOptions.AggressiveOptimisation)] as a workaround for now to force it to compile with the highest tier.

YoshihiroIto commented 4 years ago

I will wait for the API to be published.

Thank you!