How can I grap resident set size from Python on Solaris? -
Resource calling. Getrusage () returns 0 values from Python to Solaris and resident set sizes on Linux systems. On Linux you can pull RSS from / proc / position instead. Is anybody a good way to pull RSS on Solaris, is it either a Linux solution or not?
Well ... you can pull it from the pmap app by calling it at pmap-x. But I was searching a way to directly access the information in the / proc from my app / proc / & lt; Pid & gt; The / xmap file is accessed. Unfortunately, the data is stored as an array of precampress strings ... so either a Python C module is in sequence or is using the ctypes module.
Comments
Post a Comment