2006-11-16 13:09:07 +01:00
|
|
|
###########################################################
|
|
|
|
# Main function:
|
|
|
|
# -----------------
|
|
|
|
# self: self plugin object
|
|
|
|
# mself: memphis object / principal class
|
|
|
|
# pinfo: row with information about current tracing process
|
|
|
|
############################################################
|
|
|
|
|
|
|
|
|
|
|
|
def plg_on_top_data_refresh(self, ppinfo):
|
2007-08-08 00:14:19 +02:00
|
|
|
smaps = get_data(self, ppinfo['pid'])
|
2006-12-04 20:12:24 +01:00
|
|
|
|
2007-08-08 00:14:19 +02:00
|
|
|
# memphis need an array
|
|
|
|
return [smaps['private_dirty'], smaps['referenced']]
|
2006-11-16 13:09:07 +01:00
|
|
|
|
2007-08-08 00:14:19 +02:00
|
|
|
def get_data(pself, pid):
|
2006-12-04 20:12:24 +01:00
|
|
|
ProcAnalysis = pself.INTERNALS['Plg'].proc_analysis(pid)
|
2006-11-16 13:09:07 +01:00
|
|
|
|
2007-08-08 00:14:19 +02:00
|
|
|
return ProcAnalysis.SMaps()
|