Skip to content

Commit

Permalink
Move profiler back to where it was
Browse files Browse the repository at this point in the history
  • Loading branch information
daxmc99 committed Apr 5, 2022
1 parent c92a228 commit 5fbe4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zoekt-sourcegraph-indexserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ func startServer(conf rootConfig) error {
return err
}

profiler.Init("zoekt-sourcegraph-indexserver", zoekt.Version, conf.blockProfileRate)
setCompoundShardCounter(s.IndexDir)

if conf.listen != "" {
Expand Down Expand Up @@ -847,7 +848,6 @@ func newServer(conf rootConfig) (*Server, error) {
// The block profiler is disabled by default and should be enabled with care in production
runtime.SetBlockProfileRate(conf.blockProfileRate)

profiler.Init("zoekt-sourcegraph-indexserver", zoekt.Version, conf.blockProfileRate)
// Automatically prepend our own path at the front, to minimize
// required configuration.
if l, err := os.Readlink("/proc/self/exe"); err == nil {
Expand Down

0 comments on commit 5fbe4e0

Please sign in to comment.