Simplify profiler impl (bubble up Option and shorten code
Simplify profiler impl (bubble up Option and shorten code

rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer,rust-analyzer/rust-analyzer