Skip to content

Commit

Permalink
Revert "Add pprof annotations to roomserver worker goroutines"
Browse files Browse the repository at this point in the history
This reverts commit f0b9ac1.
  • Loading branch information
neilalexander committed Dec 19, 2024
1 parent f0b9ac1 commit 27a8675
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions roomserver/internal/input/input_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"encoding/json"
"errors"
"fmt"
"runtime/pprof"
"time"

"github.com/neilalexander/harmony/roomserver/storage/tables"
Expand Down Expand Up @@ -117,10 +116,6 @@ func (r *Inputer) processRoomEvent(
})
}

// Set goroutine labels, useful for pprof CPU profiles, useful for CPU
// pprof profiles to find out where time is being spent.
pprof.SetGoroutineLabels(context.WithValue(ctx, "room_id", event.RoomID().String()))

// Don't waste time processing the event if the room doesn't exist.
// A room entry locally will only be created in response to a create
// event.
Expand Down

0 comments on commit 27a8675

Please sign in to comment.