mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-27 05:56:39 +00:00
to be dropped: tracing-flame second attempt
with configuring it no post processing is needed. the time spent in loading is very small so one needs to use: cat .neon/tracing.folded | inferno-flamegraph --minwidth=0 >| flamegraph.svg To find them, otherwise it will be just walreceiver and compaction. Noticed also some trouble with the shutdown propagating from a signal with single threaded runtime; it very likely is that all of the compactions are already spawned, and as they are mostly blocking code, they will block the shutdown procedure, which will be quite late anyways.
This commit is contained in:
@@ -132,7 +132,15 @@ pub fn init_with_flame(
|
||||
log_layer.with_filter(rust_log_env_filter())
|
||||
});
|
||||
let r = r.with(TracingEventCountLayer(&TRACING_EVENT_COUNT).with_filter(rust_log_env_filter()));
|
||||
let (flame_layer, guard) = tracing_flame::FlameLayer::with_file("./tracing.folded").unwrap();
|
||||
let (flame_layer, guard) = {
|
||||
let (l, guard) = tracing_flame::FlameLayer::with_file("./tracing.folded").unwrap();
|
||||
let l = l
|
||||
.with_empty_samples(true)
|
||||
.with_module_path(false)
|
||||
.with_file_and_line(false)
|
||||
.with_threads_collapsed(true);
|
||||
(l, guard)
|
||||
};
|
||||
let r = r.with(flame_layer);
|
||||
match tracing_error_layer_enablement {
|
||||
TracingErrorLayerEnablement::EnableWithRustLogFilter => {
|
||||
|
||||
Reference in New Issue
Block a user