Skip to content

Commit cca5db9

Browse files
authoredMay 15, 2024
Update mem.go
1 parent 2d06908 commit cca5db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎mem/mem.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ func LogMemStatsPeriodically(period time.Duration, tracker *FileDescriptorTracke
3636

3737
func logStats(m *runtime.MemStats, tracker *FileDescriptorTracker) {
3838
buf := make([]byte, 0, 1024) // Preallocate buffer to avoid allocations
39+
buf = append(buf, "CPUThread = "...)
3940
buf = strconv.AppendInt(buf, int64(cxcputhread.CPUThread), 10)
40-
buf = append(buf, " B\tCPUThread = "...)
41+
buf = append(buf, " \tAlloc = "...)
4142
buf = strconv.AppendInt(buf, int64(m.Alloc), 10)
4243
buf = append(buf, " B\tTotalAlloc = "...)
4344
buf = strconv.AppendInt(buf, int64(m.TotalAlloc), 10)

0 commit comments

Comments
 (0)
Please sign in to comment.