Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for allocateReflect (0.38 sec)

  1. src/runtime/pprof/mprof_test.go

    		obj := &Obj32{link: persistentMemSink}
    		persistentMemSink = obj
    	}
    }
    
    // Allocate transient memory using reflect.Call.
    
    func allocateReflectTransient() {
    	memSink = make([]byte, 2<<20)
    }
    
    func allocateReflect() {
    	rv := reflect.ValueOf(allocateReflectTransient)
    	rv.Call(nil)
    }
    
    var memoryProfilerRun = 0
    
    func TestMemoryProfiler(t *testing.T) {
    	// Disable sampling, otherwise it's difficult to assert anything.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:20:22 UTC 2022
    - 5.3K bytes
    - Viewed (0)
Back to top