File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ type MemStats struct {
174
174
Lookups uint64
175
175
176
176
// Mallocs is the cumulative count of heap objects allocated.
177
+ // The number of live objects is Mallocs - Frees.
177
178
Mallocs uint64
178
179
179
180
// Frees is the cumulative count of heap objects freed.
@@ -397,9 +398,19 @@ type MemStats struct {
397
398
//
398
399
// This does not report allocations larger than BySize[60].Size.
399
400
BySize [61 ]struct {
400
- Size uint32
401
+ // Size is the maximum byte size of an object in this
402
+ // size class.
403
+ Size uint32
404
+
405
+ // Mallocs is the cumulative count of heap objects
406
+ // allocated in this size class. The cumulative bytes
407
+ // of allocation is Size*Mallocs. The number of live
408
+ // objects in this size class is Mallocs - Frees.
401
409
Mallocs uint64
402
- Frees uint64
410
+
411
+ // Frees is the cumulative count of heap objects freed
412
+ // in this size class.
413
+ Frees uint64
403
414
}
404
415
}
405
416
You can’t perform that action at this time.
0 commit comments