mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 939385 (part 1) - Rename largestContiguousVMBlock as vsizeMaxContiguous. r=froydnj.
--HG-- extra : rebase_source : 3c364af0442eeabd5951370792f1a467eaa86994
This commit is contained in:
parent
9bf12c6121
commit
72e4c4fc28
@ -405,8 +405,8 @@ var MEM_STAT_UNSUPPORTED = 1;
|
||||
var MEM_STAT_SUPPORTED = 2;
|
||||
TestRunner._hasMemoryStatistics = {}
|
||||
TestRunner._hasMemoryStatistics.vsize = MEM_STAT_UNKNOWN;
|
||||
TestRunner._hasMemoryStatistics.vsizeMaxContiguous = MEM_STAT_UNKNOWN;
|
||||
TestRunner._hasMemoryStatistics.heapAllocated = MEM_STAT_UNKNOWN;
|
||||
TestRunner._hasMemoryStatistics.largestContiguousVMBlock = MEM_STAT_UNKNOWN;
|
||||
|
||||
/**
|
||||
* This stub is called by SimpleTest when a test is finished.
|
||||
|
@ -263,6 +263,9 @@ interface nsIMemoryReporterManager : nsISupports
|
||||
* |vsize| (UNITS_BYTES) The virtual size, i.e. the amount of address space
|
||||
* taken up.
|
||||
*
|
||||
* |vsizeMaxContiguous| (UNITS_BYTES) The size of the largest contiguous
|
||||
* block of virtual memory.
|
||||
*
|
||||
* |resident| (UNITS_BYTES) The resident size (a.k.a. RSS or physical memory
|
||||
* used).
|
||||
*
|
||||
@ -300,13 +303,10 @@ interface nsIMemoryReporterManager : nsISupports
|
||||
*
|
||||
* |pageFaultsHard| (UNITS_COUNT_CUMULATIVE) The number of hard (a.k.a.
|
||||
* major) page faults that have occurred since the process started.
|
||||
*
|
||||
* |largestContiguousVMBlock| (UNITS_BYTES) The size of the largest
|
||||
* contiguous block of virtual memory. Only available on Windows; on all
|
||||
* other platforms, reading this value returns 0.
|
||||
*/
|
||||
readonly attribute int64_t explicit;
|
||||
readonly attribute int64_t vsize;
|
||||
readonly attribute int64_t vsizeMaxContiguous;
|
||||
readonly attribute int64_t resident;
|
||||
readonly attribute int64_t residentFast;
|
||||
|
||||
@ -329,8 +329,6 @@ interface nsIMemoryReporterManager : nsISupports
|
||||
|
||||
readonly attribute int64_t pageFaultsHard;
|
||||
|
||||
readonly attribute int64_t largestContiguousVMBlock;
|
||||
|
||||
/*
|
||||
* This attribute indicates if moz_malloc_usable_size() works.
|
||||
*/
|
||||
|
@ -371,8 +371,8 @@ static nsresult GetResidentFast(int64_t* aN)
|
||||
return GetResident(aN);
|
||||
}
|
||||
|
||||
#define HAVE_LARGEST_CONTIGUOUS_BLOCK_REPORTERS 1
|
||||
static nsresult LargestContiguousVMBlock(int64_t* aN)
|
||||
#define HAVE_VSIZE_MAX_CONTIGUOUS_REPORTER 1
|
||||
static nsresult GetVsizeMaxContiguous(int64_t* aN)
|
||||
{
|
||||
SIZE_T biggestRegion = 0;
|
||||
MEMORY_BASIC_INFORMATION vmemInfo = {0};
|
||||
@ -1285,6 +1285,17 @@ nsMemoryReporterManager::GetVsize(int64_t* aVsize)
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMemoryReporterManager::GetVsizeMaxContiguous(int64_t* aAmount)
|
||||
{
|
||||
#ifdef HAVE_VSIZE_MAX_CONTIGUOUS_REPORTER
|
||||
return ::GetVsizeMaxContiguous(aAmount);
|
||||
#else
|
||||
*aAmount = 0;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMemoryReporterManager::GetResident(int64_t* aAmount)
|
||||
{
|
||||
@ -1411,17 +1422,6 @@ nsMemoryReporterManager::GetPageFaultsHard(int64_t* aAmount)
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMemoryReporterManager::GetLargestContiguousVMBlock(int64_t* aAmount)
|
||||
{
|
||||
#ifdef HAVE_LARGEST_CONTIGUOUS_BLOCK_REPORTERS
|
||||
return LargestContiguousVMBlock(aAmount);
|
||||
#else
|
||||
*aAmount = 0;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMemoryReporterManager::GetHasMozMallocUsableSize(bool* aHas)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user