How to view that method is inlined?

  • Thread starter Michael Nemtsev
  • Start date
M

Michael Nemtsev

AFAIK, method could be candidate for inlining. But is it possible to view
after compiling that method became inlined?
Are there some keywords in ILDASM that can show that method is inlined?

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
J

Jon Skeet [C# MVP]

Michael Nemtsev said:
AFAIK, method could be candidate for inlining. But is it possible to view
after compiling that method became inlined?
Are there some keywords in ILDASM that can show that method is inlined?

No - it's done by the JIT compiler.

If you run cordbg and tell it to include JIT optimisations, you can
tell if you're good with assembler code :)

(I don't know off-hand any good links to cordbg guides - I've used it
myself a few times, and it's pretty good. I don't know much assembler,
unfortunately.)
 
W

Willy Denoyette [MVP]

|
| AFAIK, method could be candidate for inlining. But is it possible to view
| after compiling that method became inlined?
| Are there some keywords in ILDASM that can show that method is inlined?
|
| ---
| WBR,
| Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour
|
| "At times one remains faithful to a cause only because its opponents do
not
| cease to be insipid." (c) Friedrich Nietzsche
|

Methods are inlined by the JIT, there is nothing in the IL that would
indicate a possible inlining.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top