(&self, name: &str, code: &[u8])
| 51 | |
| 52 | impl ProfilingAgent for JitDumpAgent { |
| 53 | fn register_function(&self, name: &str, code: &[u8]) { |
| 54 | let mut jitdump_file = JITDUMP_FILE.lock().unwrap(); |
| 55 | let jitdump_file = jitdump_file.as_mut().unwrap(); |
| 56 | let timestamp = jitdump_file.get_time_stamp(); |
| 57 | let tid = rustix::thread::gettid() |
| 58 | .as_raw_nonzero() |
| 59 | .get() |
| 60 | .cast_unsigned(); |
| 61 | if let Err(err) = jitdump_file.dump_code_load_record(&name, code, timestamp, self.pid, tid) |
| 62 | { |
| 63 | println!("Jitdump: write_code_load_failed_record failed: {err:?}\n"); |
| 64 | } |
| 65 | } |
| 66 | } |
nothing calls this directly
no test coverage detected