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 @@ -129,7 +129,7 @@ void LLMemory::updateMemoryInfo()
129
129
{
130
130
// Our Windows definition of PagefileUsage is documented by Microsoft as "the total amount of
131
131
// memory that the memory manager has committed for a running process", which is rss.
132
- sAllocatedPageSizeInKB = U32Bytes ( info.resident_size );
132
+ sAllocatedPageSizeInKB = U32Kilobytes::convert ( U64Bytes ( info.resident_size ) );
133
133
134
134
// Activity Monitor => Inspect Process => Real Memory Size appears to report resident_size
135
135
// Activity monitor => main window memory column appears to report phys_footprint, which spot checks as at least 30% less.
@@ -139,7 +139,7 @@ void LLMemory::updateMemoryInfo()
139
139
// reported for the app by the Memory Monitor in Instruments.' It is still about 8% bigger than phys_footprint.
140
140
//
141
141
// (On Windows, we use WorkingSetSize.)
142
- sAllocatedMemInKB = U32Bytes ( info.resident_size - info.reusable );
142
+ sAllocatedMemInKB = U32Kilobytes::convert ( U64Bytes ( info.resident_size - info.reusable ) );
143
143
}
144
144
else
145
145
{
You can’t perform that action at this time.
0 commit comments