Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StopCPUProfile (0.15 sec)

  1. src/runtime/pprof/pprof_test.go

    	// that could mean it just didn't run long enough, try with a
    	// longer duration.
    	for {
    		var prof bytes.Buffer
    		if err := StartCPUProfile(&prof); err != nil {
    			t.Fatal(err)
    		}
    		f(duration)
    		StopCPUProfile()
    
    		if p, ok := profileOk(t, matches, prof, duration); ok {
    			return p
    		}
    
    		duration *= 2
    		if time.Until(deadline) < duration {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. src/testing/testing.go

    func (f matchStringOnly) MatchString(pat, str string) (bool, error)   { return f(pat, str) }
    func (f matchStringOnly) StartCPUProfile(w io.Writer) error           { return errMain }
    func (f matchStringOnly) StopCPUProfile()                             {}
    func (f matchStringOnly) WriteProfileTo(string, io.Writer, int) error { return errMain }
    func (f matchStringOnly) ImportPath() string                          { return "" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top