returnfmt.Errorf("failed to patch Go runtime.gcenable: %w",err)
returnfmt.Errorf("failed to patch Go runtime.gcenable: %w",err)
}
}
case"runtime.MemProfileRate":
case"runtime.MemProfileRate":
iferr:=st.SetMemoryRange(uint32(s.Value),bytes.NewReader(make([]byte,4)));err!=nil{// disable mem profiling, to avoid a lot of unnecessary floating point ops
iferr:=st.Memory.SetMemoryRange(uint32(s.Value),bytes.NewReader(make([]byte,4)));err!=nil{// disable mem profiling, to avoid a lot of unnecessary floating point ops