Author: Antonio Cuni <[email protected]>
Branch: fix-vmprof-stacklet-switch
Changeset: r93037:46ee55287ed4
Date: 2017-11-15 16:03 +0100
http://bitbucket.org/pypy/pypy/changeset/46ee55287ed4/
Log: remove the space param from rvmprof.{start,stop}_sampling: it is not
used and also it does not make sense to have it inside rlib
diff --git a/pypy/module/_vmprof/interp_vmprof.py
b/pypy/module/_vmprof/interp_vmprof.py
--- a/pypy/module/_vmprof/interp_vmprof.py
+++ b/pypy/module/_vmprof/interp_vmprof.py
@@ -93,8 +93,8 @@
return space.newtext(path)
def stop_sampling(space):
- return space.newint(rvmprof.stop_sampling(space))
+ return space.newint(rvmprof.stop_sampling())
def start_sampling(space):
- rvmprof.start_sampling(space)
+ rvmprof.start_sampling()
return space.w_None
diff --git a/rpython/rlib/rstacklet.py b/rpython/rlib/rstacklet.py
--- a/rpython/rlib/rstacklet.py
+++ b/rpython/rlib/rstacklet.py
@@ -41,13 +41,13 @@
def switch(self, stacklet):
if DEBUG:
debug.remove(stacklet)
- rvmprof.stop_sampling(space=None) # XXX
+ rvmprof.stop_sampling()
x = cintf.save_rvmprof_stack()
try:
h = self._gcrootfinder.switch(stacklet)
finally:
cintf.restore_rvmprof_stack(x)
- rvmprof.start_sampling(space=None) # XXX
+ rvmprof.start_sampling()
if DEBUG:
debug.add(h)
return h
diff --git a/rpython/rlib/rvmprof/__init__.py b/rpython/rlib/rvmprof/__init__.py
--- a/rpython/rlib/rvmprof/__init__.py
+++ b/rpython/rlib/rvmprof/__init__.py
@@ -55,9 +55,9 @@
return None
-def stop_sampling(space):
+def stop_sampling():
fd = _get_vmprof().cintf.vmprof_stop_sampling()
return rffi.cast(lltype.Signed, fd)
-def start_sampling(space):
+def start_sampling():
_get_vmprof().cintf.vmprof_start_sampling()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit