- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for StopCPUProfile (0.37 sec)
-
src/cmd/cgo/internal/testcarchive/testdata/libgo6/sigprof.go
import ( "io" "runtime/pprof" ) import "C" //export go_start_profile func go_start_profile() { pprof.StartCPUProfile(io.Discard) } //export go_stop_profile func go_stop_profile() { pprof.StopCPUProfile() } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 404 bytes - Viewed (0) -
src/runtime/testdata/testprog/vdso.go
} t0 := time.Now() t1 := t0 // We should get a profiling signal 100 times a second, // so running for 1 second should be sufficient. for t1.Sub(t0) < time.Second { t1 = time.Now() } pprof.StopCPUProfile() name := f.Name() if err := f.Close(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(2) } if err := os.Remove(name); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jul 30 16:04:50 UTC 2022 - 1005 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/testing/internal/testdeps/deps.go
if err != nil { return } } return matchRe.MatchString(str), nil } func (TestDeps) StartCPUProfile(w io.Writer) error { return pprof.StartCPUProfile(w) } func (TestDeps) StopCPUProfile() { pprof.StopCPUProfile() } func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error { return pprof.Lookup(name).WriteTo(w, debug) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan13.go
"runtime/pprof" "unsafe" ) func main() { runtime.SetCgoTraceback(0, unsafe.Pointer(C.tsanTraceback), nil, nil) pprof.StartCPUProfile(io.Discard) C.runThreads(C.int(runtime.GOMAXPROCS(0))) pprof.StopCPUProfile()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_pgo.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 2.1K bytes - Viewed (0) -
pkg/util/coverage/fake_test_deps.go
func (fakeTestDeps) StartCPUProfile(io.Writer) error { return nil } //nolint:unused // U1000 see comment above, we know it's unused normally. func (fakeTestDeps) StopCPUProfile() {} //nolint:unused // U1000 see comment above, we know it's unused normally. func (fakeTestDeps) StartTestLog(io.Writer) {} //nolint:unused // U1000 see comment above, we know it's unused normally.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 15:31:22 UTC 2024 - 3.5K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/cpu-profile.go
// via the explicit goroutine ID in each event, gets many more samples // than the CPU profiler when filtered to this goroutine via labels. cpuHogger(cpuHog1, &salt1, dur) }() trace.Stop() pprof.StopCPUProfile() // Summarize the CPU profile to stderr so the test can check against it. prof, err := profile.Parse(cpuBuf) if err != nil { log.Fatalf("failed to parse CPU profile: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.8K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
panic("runtime/pprof: converting profile: " + err.Error()) } b.build() cpu.done <- true } // StopCPUProfile stops the current CPU profile, if any. // StopCPUProfile only returns after all the writes for the // profile have completed. func StopCPUProfile() { cpu.Lock() defer cpu.Unlock() if !cpu.profiling { return } cpu.profiling = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/link/internal/benchmark/bench.go
m.curMark.startT = time.Now() } func (m *Metrics) closeMark() { if m == nil || m.curMark == nil { return } m.curMark.endT = time.Now() if m.shouldPProf() { pprof.StopCPUProfile() m.pprofFile.Close() m.pprofFile = nil } runtime.ReadMemStats(&m.curMark.endM) if m.gc == GC { runtime.GC() runtime.ReadMemStats(&m.curMark.gcM) if m.shouldPProf() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 30 18:10:36 UTC 2023 - 4.7K bytes - Viewed (0)