pub fn native_code(module_substring: &str, token: u32) -> Option<(usize, usize)>Available on crate feature
coreclr only.Expand description
The native code address and size of a method, for patching it in place (for
example with iced). module_substring matches a loaded module’s name, and
token is the method’s metadata token (mdMethodDef). Returns None until
the method has been JIT-compiled.
Available once the profiler is initialised; the method must belong to an already-loaded module.