Bug 811553 - Only count major page faults when possible (r=terrence)
authorBill McCloskey <wmccloskey@mozilla.com>
Tue, 13 Nov 2012 17:14:57 -0800
changeset 113180 193c590b54eff3227a78b8b2cf8bbabdb23751a7
parent 113179 5a1edbdb251f642466dd427dbd05dec957bfa03c
child 113181 0a7efaf3ac7a4865bdca036d50664d281d11ae7c
push id23859
push useremorley@mozilla.com
push dateWed, 14 Nov 2012 14:36:31 +0000
treeherdermozilla-central@87928cd21b40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs811553
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 811553 - Only count major page faults when possible (r=terrence)
js/src/gc/Memory.cpp
--- a/js/src/gc/Memory.cpp
+++ b/js/src/gc/Memory.cpp
@@ -385,17 +385,17 @@ MarkPagesInUse(void *p, size_t size)
 
 size_t
 GetPageFaultCount()
 {
     struct rusage usage;
     int err = getrusage(RUSAGE_SELF, &usage);
     if (err)
         return 0;
-    return usage.ru_minflt + usage.ru_majflt;
+    return usage.ru_majflt;
 }
 
 #else
 #error "Memory mapping functions are not defined for your OS."
 #endif
 
 } /* namespace gc */
 } /* namespace js */