Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for blockProfile (0.16 sec)

  1. src/cmd/go/testdata/script/test_fuzz_profile_flags.txt

    [!fuzz] skip
    
    ! go test -fuzz=FuzzTrivial -coverprofile=prof
    ! stdout .
    stderr '^cannot use -coverprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -blockprofile=prof
    ! stdout .
    stderr '^cannot use -blockprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -cpuprofile=prof
    ! stdout .
    stderr '^cannot use -cpuprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -memprofile=prof
    ! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:01:20 UTC 2021
    - 855 bytes
    - Viewed (0)
  2. src/cmd/go/internal/test/flagdefs.go

    // the test binary with the prefix "test.".
    var passFlagToTest = map[string]bool{
    	"bench":                true,
    	"benchmem":             true,
    	"benchtime":            true,
    	"blockprofile":         true,
    	"blockprofilerate":     true,
    	"count":                true,
    	"coverprofile":         true,
    	"cpu":                  true,
    	"cpuprofile":           true,
    	"failfast":             true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/runtime/mprof.go

    	Cycles int64
    	StackRecord
    }
    
    // BlockProfile returns n, the number of records in the current blocking profile.
    // If len(p) >= n, BlockProfile copies the profile into p and returns n, true.
    // If len(p) < n, BlockProfile does not change p and returns n, false.
    //
    // Most clients should use the [runtime/pprof] package or
    // the [testing] package's -test.blockprofile flag instead
    // of calling BlockProfile directly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. src/testing/testing.go

    			os.Exit(2)
    		}
    		f.Close()
    	}
    	if *blockProfile != "" && *blockProfileRate >= 0 {
    		f, err := os.Create(toOutputDir(*blockProfile))
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "testing: %s\n", err)
    			os.Exit(2)
    		}
    		if err = m.deps.WriteProfileTo("block", f, 0); err != nil {
    			fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *blockProfile, err)
    			os.Exit(2)
    		}
    		f.Close()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. src/runtime/pprof/pprof.go

    	name:  "heap",
    	count: countHeap,
    	write: writeHeap,
    }
    
    var allocsProfile = &Profile{
    	name:  "allocs",
    	count: countHeap, // identical to heap profile
    	write: writeAlloc,
    }
    
    var blockProfile = &Profile{
    	name:  "block",
    	count: countBlock,
    	write: writeBlock,
    }
    
    var mutexProfile = &Profile{
    	name:  "mutex",
    	count: countMutex,
    	write: writeMutex,
    }
    
    func lockProfiles() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/testflag.go

    	// to build the test in a way that supports the use of the flag.
    
    	cf.StringVar(&testBench, "bench", "", "")
    	cf.Bool("benchmem", false, "")
    	cf.String("benchtime", "", "")
    	cf.StringVar(&testBlockProfile, "blockprofile", "", "")
    	cf.String("blockprofilerate", "", "")
    	cf.Int("count", 0, "")
    	cf.String("cpu", "", "")
    	cf.StringVar(&testCPUProfile, "cpuprofile", "", "")
    	cf.BoolVar(&testFailFast, "failfast", false, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    profile the tests during execution:
    
    	-benchmem
    	    Print memory allocation statistics for benchmarks.
    	    Allocations made in C or using C.malloc are not counted.
    
    	-blockprofile block.out
    	    Write a goroutine blocking profile to the specified file
    	    when all tests are complete.
    	    Writes test binary as -c would.
    
    	-blockprofilerate n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/cmd/go/alldocs.go

    // profile the tests during execution:
    //
    //	-benchmem
    //	    Print memory allocation statistics for benchmarks.
    //	    Allocations made in C or using C.malloc are not counted.
    //
    //	-blockprofile block.out
    //	    Write a goroutine blocking profile to the specified file
    //	    when all tests are complete.
    //	    Writes test binary as -c would.
    //
    //	-blockprofilerate n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. src/runtime/debug.go

    func totalMutexWaitTimeNanos() int64 {
    	total := sched.totalMutexWaitTime.Load()
    
    	total += sched.totalRuntimeLockWaitTime.Load()
    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		total += mp.mLockProfile.waitTime.Load()
    	}
    
    	return total
    }
    
    // NumGoroutine returns the number of goroutines that currently exist.
    func NumGoroutine() int {
    	return int(gcount())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/runtime/lock_futex.go

    	v := atomic.Xchg(key32(&l.key), mutex_unlocked)
    	if v == mutex_unlocked {
    		throw("unlock of unlocked lock")
    	}
    	if v == mutex_sleeping {
    		futexwakeup(key32(&l.key), 1)
    	}
    
    	gp := getg()
    	gp.m.mLockProfile.recordUnlock(l)
    	gp.m.locks--
    	if gp.m.locks < 0 {
    		throw("runtimeĀ·unlock: lock count")
    	}
    	if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top