- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for allocateReflect (0.09 sec)
-
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)