Skip to content

Commit

Permalink
Add pprof handlers to the broadcaster and grader
Browse files Browse the repository at this point in the history
This change allows profiling to diagnose why the omegaup-grader binary's
memory consumption keeps growing.
  • Loading branch information
lhchavez committed Feb 15, 2019
1 parent 3d16f37 commit e235745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/omegaup-broadcaster/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"math"
"net/http"
_ "net/http/pprof"
"net/url"
"os"
"strings"
Expand Down
1 change: 1 addition & 0 deletions cmd/omegaup-grader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/omegaup/quark/grader"
"io"
"net/http"
_ "net/http/pprof"
"os"
"path"
"path/filepath"
Expand Down

0 comments on commit e235745

Please sign in to comment.