mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
YJIT: Buffer writes to the perf map
This commit is contained in:
parent
3861918fd3
commit
fee863b4df
Notes:
git
2025-10-22 21:24:57 +00:00
@ -438,7 +438,7 @@ impl<'a> JITState<'a> {
|
||||
fn flush_perf_symbols(&self, cb: &CodeBlock) {
|
||||
assert_eq!(0, self.perf_stack.len());
|
||||
let path = format!("/tmp/perf-{}.map", std::process::id());
|
||||
let mut f = std::fs::File::options().create(true).append(true).open(path).unwrap();
|
||||
let mut f = std::io::BufWriter::new(std::fs::File::options().create(true).append(true).open(path).unwrap());
|
||||
for sym in self.perf_map.borrow().iter() {
|
||||
if let (start, Some(end), name) = sym {
|
||||
// In case the code straddles two pages, part of it belongs to the symbol.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user