Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for blockProfile (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top