Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestProfilerStackDepth (0.15 sec)

  1. src/runtime/pprof/pprof_test.go

    				if line.Function.Name == "time.now" {
    					if seenNow {
    						t.Fatalf("unexpected recursive time.now")
    					}
    					seenNow = true
    				}
    			}
    		}
    	}
    }
    
    func TestProfilerStackDepth(t *testing.T) {
    	// Disable sampling, otherwise it's difficult to assert anything.
    	oldMemRate := runtime.MemProfileRate
    	runtime.MemProfileRate = 1
    	runtime.SetBlockProfileRate(1)
    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