Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for StopCPUProfile (0.63 sec)

  1. src/net/http/pprof/pprof.go

    		serveError(w, http.StatusInternalServerError,
    			fmt.Sprintf("Could not enable CPU profiling: %s", err))
    		return
    	}
    	sleep(r, time.Duration(sec)*time.Second)
    	pprof.StopCPUProfile()
    }
    
    // Trace responds with the execution trace in binary form.
    // Tracing lasts for duration specified in seconds GET parameter, or for 1 second if not specified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:34:05 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/gofmt/gofmt.go

    		if err != nil {
    			s.AddReport(fmt.Errorf("creating cpu profile: %s", err))
    			return
    		}
    		defer func() {
    			f.Close()
    			<-fdSem
    		}()
    		pprof.StartCPUProfile(f)
    		defer pprof.StopCPUProfile()
    	}
    
    	initParserMode()
    	initRewrite()
    
    	args := flag.Args()
    	if len(args) == 0 {
    		if *write {
    			s.AddReport(fmt.Errorf("error: cannot use -w with standard input"))
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/main.go

    		f, err := os.Create(*cpuprofile)
    		if err != nil {
    			log.Fatalf("%v", err)
    		}
    		if err := pprof.StartCPUProfile(f); err != nil {
    			log.Fatalf("%v", err)
    		}
    		AtExit(func() {
    			pprof.StopCPUProfile()
    			if err = f.Close(); err != nil {
    				log.Fatalf("error closing cpu profile: %v", err)
    			}
    		})
    	}
    	if *memprofile != "" {
    		if *memprofilerate != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/main.go

    			log.Fatal("could not create CPU profile: ", err)
    		}
    		defer f.Close()
    		if err := pprof.StartCPUProfile(f); err != nil {
    			log.Fatal("could not start CPU profile: ", err)
    		}
    		defer pprof.StopCPUProfile()
    	}
    	if *tracefile != "" {
    		f, err := os.Create(*tracefile)
    		if err != nil {
    			log.Fatalf("failed to create trace output file: %v", err)
    		}
    		defer func() {
    			if err := f.Close(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. 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)
  6. cmd/utils.go

    		f, err := Create(fn)
    		if err != nil {
    			return nil, err
    		}
    		err = pprof.StartCPUProfile(f)
    		if err != nil {
    			return nil, err
    		}
    		prof.stopFn = func() ([]byte, error) {
    			pprof.StopCPUProfile()
    			err := f.Close()
    			if err != nil {
    				return nil, err
    			}
    			defer RemoveAll(dirPath)
    			return ioutilx.ReadFile(fn)
    		}
    	case madmin.ProfilerCPUIO:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Labels", Func, 9},
    		{"Lookup", Func, 0},
    		{"NewProfile", Func, 0},
    		{"Profile", Type, 0},
    		{"Profiles", Func, 0},
    		{"SetGoroutineLabels", Func, 9},
    		{"StartCPUProfile", Func, 0},
    		{"StopCPUProfile", Func, 0},
    		{"WithLabels", Func, 9},
    		{"WriteHeapProfile", Func, 0},
    	},
    	"runtime/trace": {
    		{"(*Region).End", Method, 11},
    		{"(*Task).End", Method, 11},
    		{"IsEnabled", Func, 11},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg runtime/pprof, func NewProfile(string) *Profile
    pkg runtime/pprof, func Profiles() []*Profile
    pkg runtime/pprof, func StartCPUProfile(io.Writer) error
    pkg runtime/pprof, func StopCPUProfile()
    pkg runtime/pprof, func WriteHeapProfile(io.Writer) error
    pkg runtime/pprof, method (*Profile) Add(interface{}, int)
    pkg runtime/pprof, method (*Profile) Count() int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top