Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMathBigDivide (0.21 sec)

  1. src/runtime/pprof/pprof_test.go

    			}
    			fmt.Fprintf(w, "%s:%d", line.Function.Name, line.Line)
    		}
    		fmt.Fprintf(w, ")")
    	}
    }
    
    // Test that profiling of division operations is okay, especially on ARM. See issue 6681.
    func TestMathBigDivide(t *testing.T) {
    	testCPUProfile(t, nil, func(duration time.Duration) {
    		t := time.After(duration)
    		pi := new(big.Int)
    		for {
    			for i := 0; i < 100; i++ {
    				n := big.NewInt(2646693125139304345)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top