File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ type memoryThresholdEvent struct {
43
43
swap bool
44
44
}
45
45
46
- // MemoryThresholdEvent returns a new memory threshold event to be used with RegisterMemoryEvent .
46
+ // MemoryThresholdEvent returns a new [MemoryEvent] representing the memory threshold set .
47
47
// If swap is true, the event will be registered using memory.memsw.usage_in_bytes
48
48
func MemoryThresholdEvent (threshold uint64 , swap bool ) MemoryEvent {
49
49
return & memoryThresholdEvent {
@@ -83,7 +83,7 @@ type memoryPressureEvent struct {
83
83
hierarchy EventNotificationMode
84
84
}
85
85
86
- // MemoryPressureEvent returns a new memory pressure event to be used with RegisterMemoryEvent .
86
+ // MemoryPressureEvent returns a new [MemoryEvent] representing the memory pressure set .
87
87
func MemoryPressureEvent (pressureLevel MemoryPressureLevel , hierarchy EventNotificationMode ) MemoryEvent {
88
88
return & memoryPressureEvent {
89
89
pressureLevel ,
You can’t perform that action at this time.
0 commit comments