Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for my_profile (0.28 sec)

  1. src/cmd/link/internal/ld/main.go

    	flagRandLayout    = flag.Int64("randlayout", 0, "randomize function layout")
    	cpuprofile        = flag.String("cpuprofile", "", "write cpu profile to `file`")
    	memprofile        = flag.String("memprofile", "", "write memory profile to `file`")
    	memprofilerate    = flag.Int64("memprofilerate", 0, "set runtime.MemProfileRate to `rate`")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/ld_test.go

    		},
    		{
    			"with_memprofile",
    			`
    package main
    import "runtime"
    func main() {
    	runtime.MemProfile(nil, false)
    	println(runtime.MemProfileRate)
    }
    `,
    			"524288",
    		},
    		{
    			"with_memprofile_indirect",
    			`
    package main
    import "runtime"
    var f = runtime.MemProfile
    func main() {
    	if f == nil {
    		panic("no f")
    	}
    	println(runtime.MemProfileRate)
    }
    `,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/runtime/pprof/pprof.go

    // memory profiles to cpu.prof and mem.prof:
    //
    //	go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
    //
    // To add equivalent profiling support to a standalone program, add
    // code like the following to your main function:
    //
    //	var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`")
    //	var memprofile = flag.String("memprofile", "", "write memory profile to `file`")
    //
    //	func main() {
    //	    flag.Parse()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/testflag.go

    	cf.BoolVar(&testFailFast, "failfast", false, "")
    	cf.StringVar(&testFuzz, "fuzz", "", "")
    	cf.Bool("fullpath", false, "")
    	cf.StringVar(&testList, "list", "", "")
    	cf.StringVar(&testMemProfile, "memprofile", "", "")
    	cf.String("memprofilerate", "", "")
    	cf.StringVar(&testMutexProfile, "mutexprofile", "", "")
    	cf.String("mutexprofilefraction", "", "")
    	cf.Var(&testOutputDir, "outputdir", "")
    	cf.Int("parallel", 0, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    		// Don't report {single,multi}checker debugging
    		// flags or fix as these have no effect on unitchecker
    		// (as invoked by 'go vet').
    		switch f.Name {
    		case "debug", "cpuprofile", "memprofile", "trace", "fix":
    			return
    		}
    
    		b, ok := f.Value.(interface{ IsBoolFlag() bool })
    		isBool := ok && b.IsBoolFlag()
    		flags = append(flags, jsonFlag{f.Name, isBool, f.Usage})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top