mirror of
https://github.com/neondatabase/neon.git
synced 2026-08-12 09:19:39 +00:00
Use jemalloc-pprof for symbolization
This commit is contained in:
@@ -672,6 +672,10 @@ fn start_pageserver(
|
||||
}
|
||||
});
|
||||
|
||||
// Allocate a bunch of memory.
|
||||
let alloc = allocate(256 * 1024 * 1024);
|
||||
println!("allocated {}b", alloc.len());
|
||||
|
||||
// Wait for cancellation signal and shut down the pageserver.
|
||||
//
|
||||
// This cancels the `shutdown_pageserver` cancellation tree. Right now that tree doesn't
|
||||
@@ -695,6 +699,17 @@ fn start_pageserver(
|
||||
})
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
fn allocate(size: usize) -> Vec<u8> {
|
||||
allocate_inline(size)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn allocate_inline(size: usize) -> Vec<u8> {
|
||||
println!("allocating {size}b");
|
||||
vec![9; size]
|
||||
}
|
||||
|
||||
async fn create_remote_storage_client(
|
||||
conf: &'static PageServerConf,
|
||||
) -> anyhow::Result<GenericRemoteStorage> {
|
||||
|
||||
Reference in New Issue
Block a user