New developer-console

This commit is contained in:
Eduardo Silva
2006-11-16 09:09:07 -03:00
committed by Marco Pesenti Gritti
parent 9a7518f230
commit d51031d882
34 changed files with 927 additions and 18 deletions
@@ -0,0 +1,6 @@
sugardir = $(pkgdatadir)/shell/console/plugins/memphis_init
sugar_PYTHON = \
README \
__init__.py \
info.py
@@ -0,0 +1,2 @@
This plugin give support to draw the Virtual Memory Size
usage by the current tracing process.
@@ -0,0 +1,15 @@
import info
INTERNALS = {
'PLGNAME': "memphis",
'TABNAME': None,
'AUTHOR': "Eduardo Silva",
'DESC': "Print basic process information",
# Plugin API
'Plg': None, # Plugin object
# Top process view requirements
'top_data': [int, str, str], # Top data types needed by memphis core plugin
'top_cols': ["PID", "Process Name", "Status"] # Column names
}
@@ -0,0 +1,13 @@
###########################################################
# 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):
data = [ppinfo['pid'], ppinfo['name'], ppinfo['state_name']]
return data