File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ type memoryThresholdEvent struct {
4343 swap bool
4444}
4545
46- // MemoryThresholdEvent returns a new memory threshold event to be used with RegisterMemoryEvent .
46+ // MemoryThresholdEvent returns a new [MemoryEvent] representing the memory threshold set .
4747// If swap is true, the event will be registered using memory.memsw.usage_in_bytes
4848func MemoryThresholdEvent (threshold uint64 , swap bool ) MemoryEvent {
4949 return & memoryThresholdEvent {
@@ -83,7 +83,7 @@ type memoryPressureEvent struct {
8383 hierarchy EventNotificationMode
8484}
8585
86- // MemoryPressureEvent returns a new memory pressure event to be used with RegisterMemoryEvent .
86+ // MemoryPressureEvent returns a new [MemoryEvent] representing the memory pressure set .
8787func MemoryPressureEvent (pressureLevel MemoryPressureLevel , hierarchy EventNotificationMode ) MemoryEvent {
8888 return & memoryPressureEvent {
8989 pressureLevel ,
You can’t perform that action at this time.
0 commit comments