Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: fix-vmprof-memory-tracking
Changeset: r96670:560b75269a02
Date: 2019-05-24 17:37 +0200
http://bitbucket.org/pypy/pypy/changeset/560b75269a02/

Log:    aaargh, the two arguments to vmprof_init were swapped, breaking
        memory profiling on PyPy for non-deep reasons.

diff --git a/rpython/rlib/rvmprof/rvmprof.py b/rpython/rlib/rvmprof/rvmprof.py
--- a/rpython/rlib/rvmprof/rvmprof.py
+++ b/rpython/rlib/rvmprof/rvmprof.py
@@ -143,7 +143,7 @@
             native = 0 # force disabled on Windows
         lines = 0 # not supported on PyPy currently
 
-        p_error = self.cintf.vmprof_init(fileno, interval, lines, memory, 
"pypy", native, real_time)
+        p_error = self.cintf.vmprof_init(fileno, interval, memory, lines, 
"pypy", native, real_time)
         if p_error:
             raise VMProfError(rffi.charp2str(p_error))
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to