mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 15:34:01 +00:00
Don't unnecessarily truncate the memory size (bug 335119) r=marria
This commit is contained in:
parent
64667d0f59
commit
e60fb67cd7
@ -178,9 +178,9 @@ nsProfileCollector::LogMemory(nsIMetricsEventItem *profile)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
PRInt32 sizeMB = size >> 20;
|
||||
PRUint64 sizeMB = size >> 20;
|
||||
properties->SetPropertyAsUint64(NS_LITERAL_STRING("mb"), sizeMB);
|
||||
MS_LOG(("Logged memory mb=%d", sizeMB));
|
||||
MS_LOG(("Logged memory mb=%ull", sizeMB));
|
||||
|
||||
nsresult rv = nsMetricsUtils::AddChildItem(
|
||||
profile, NS_LITERAL_STRING("memory"), properties);
|
||||
|
Loading…
x
Reference in New Issue
Block a user