Skip to content

Commit 2b79625

Browse files
committed
Remove tracing from hot functions
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 8c73c32 commit 2b79625

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/hyperlight_host/src/mem/shared_mem.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ macro_rules! generate_writer {
7878
($fname:ident, $ty:ty) => {
7979
/// Write a value of type `$ty` to the memory at the given offset.
8080
#[allow(dead_code)]
81-
#[instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace")]
8281
pub(crate) fn $fname(&mut self, offset: usize, value: $ty) -> Result<()> {
8382
let data = self.as_mut_slice();
8483
bounds_check!(offset, std::mem::size_of::<$ty>(), data.len());
@@ -586,7 +585,6 @@ impl ExclusiveSharedMemory {
586585
/// the safety documentation of pointer::offset.
587586
///
588587
/// This is ensured by a check in ::new()
589-
#[instrument(skip_all, parent = Span::current(), level= "Trace")]
590588
pub(super) fn as_mut_slice<'a>(&'a mut self) -> &'a mut [u8] {
591589
unsafe { std::slice::from_raw_parts_mut(self.base_ptr(), self.mem_size()) }
592590
}
@@ -708,7 +706,6 @@ pub trait SharedMemory {
708706
/// Return the length of usable memory contained in `self`.
709707
/// The returned size does not include the size of the surrounding
710708
/// guard pages.
711-
#[instrument(skip_all, parent = Span::current(), level= "Trace")]
712709
fn mem_size(&self) -> usize {
713710
self.region().size - 2 * PAGE_SIZE_USIZE
714711
}

0 commit comments

Comments
 (0)