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: 5 additions & 1 deletion crates/tracedecay-lsp/src/analyzer/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,11 @@ impl StdioLspClient {
where
R: LspRequest,
{
let response = self.request::<R>(params, cancellation, timeouts).await?;
// Boxed: with profiling enabled `request` is the widest I/O future in
// this client. Awaiting it by value inflates every semantic wrapper
// and the dispatch match (a match future is as large as its widest
// arm).
let response = Box::pin(self.request::<R>(params, cancellation, timeouts)).await?;
serde_json::to_value(response).map_err(|error| LspSemanticRequestError::InvalidResponse {
class: error.to_string(),
})
Expand Down
2 changes: 1 addition & 1 deletion crates/tracedecay/src/daemon/shutdown_watchdog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn finalize_hotpath_report_within(bound: Duration) {
fn watchdog_fire_after() -> Duration {
#[cfg(feature = "hotpath")]
{
return shutdown_exit_bound().saturating_sub(HOTPATH_FINALIZE_BOUND);
shutdown_exit_bound().saturating_sub(HOTPATH_FINALIZE_BOUND)
}
#[cfg(not(feature = "hotpath"))]
shutdown_exit_bound()
Expand Down
Loading