Skip to content

Commit 2437fa4

Browse files
authored
Revert "Simplify quick profiling" (microsoft#2412)
1 parent c15e764 commit 2437fa4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

internal/pprof/pprof.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"os"
77
"path/filepath"
88
"runtime/pprof"
9-
10-
"github.com/microsoft/typescript-go/internal/repo"
119
)
1210

1311
type ProfileSession struct {
@@ -63,12 +61,3 @@ func (p *ProfileSession) Stop() {
6361
fmt.Fprintf(p.logWriter, "CPU profile: %v\n", p.cpuFilePath)
6462
fmt.Fprintf(p.logWriter, "Memory profile: %v\n", p.memFilePath)
6563
}
66-
67-
// ProfileInPprofDir is a convenience function that starts profiling in the 'pprof' directory under the repository root.
68-
// The resulting files are logged to stderr. It returns a function that stops the profiling when called.
69-
func ProfileInPprofDir() func() {
70-
session := BeginProfiling(filepath.Join(repo.RootPath, "pprof"), os.Stderr)
71-
return func() {
72-
session.Stop()
73-
}
74-
}

0 commit comments

Comments
 (0)