Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions samply-symbols/src/shared.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#[cfg(feature = "partial_read_stats")]
use std::cell::RefCell;
use std::fmt::{Debug, Display};
use std::future::Future;
use std::marker::PhantomData;
Expand Down Expand Up @@ -624,7 +622,7 @@ impl FileReadStats {
}
self.read_call_count += 1;
}
chunkbits.set_all(true);
chunkbits.fill(true);
}

pub fn unique_bytes_read(&self) -> u64 {
Expand Down Expand Up @@ -744,7 +742,7 @@ impl<T: FileContents> FileContentsWrapper<T> {
#[cfg(feature = "partial_read_stats")]
impl<T: FileContents> Drop for FileContentsWrapper<T> {
fn drop(&mut self) {
eprintln!("{}", self.partial_read_stats.lock());
eprintln!("{}", *self.partial_read_stats.lock().unwrap());
}
}

Expand Down
2 changes: 1 addition & 1 deletion tools/dump_table/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ type FileContentsType = samply_symbols::FileContentsWithChunkedCaching<MmapFileC

#[cfg(feature = "chunked_caching")]
fn mmap_to_file_contents(mmap: memmap2::Mmap) -> FileContentsType {
samply_symbols::FileContentsWithChunkedCaching::new(mmap.len() as u64, MmapFileContents(mmap))
samply_symbols::FileContentsWithChunkedCaching::new(mmap.len(), MmapFileContents(mmap))
}

#[cfg(not(feature = "chunked_caching"))]
Expand Down
Loading