File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 66 "os"
77 "path/filepath"
88 "runtime/pprof"
9-
10- "github.com/microsoft/typescript-go/internal/repo"
119)
1210
1311type 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- }
You can’t perform that action at this time.
0 commit comments