зеркало из https://github.com/github/ruby.git
YJIT: Print a disasm path to stderr (#8967)
YJIT: Print a perf map path to stderr
This commit is contained in:
Родитель
f376163194
Коммит
fa547cd702
|
@ -232,7 +232,7 @@ pub fn parse_option(str_ptr: *const std::os::raw::c_char) -> Option<()> {
|
||||||
directory => {
|
directory => {
|
||||||
let pid = std::process::id();
|
let pid = std::process::id();
|
||||||
let path = format!("{directory}/yjit_{pid}.log");
|
let path = format!("{directory}/yjit_{pid}.log");
|
||||||
println!("YJIT disasm dump: {path}");
|
eprintln!("YJIT disasm dump: {path}");
|
||||||
unsafe { OPTIONS.dump_disasm = Some(DumpDisasm::File(path)) }
|
unsafe { OPTIONS.dump_disasm = Some(DumpDisasm::File(path)) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче