Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/console/interface/memphis/plugins/dirty_size/info.py
blob: 54a2e7e7857846d2aa31d50a11589a3e27efbe54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
###########################################################
# 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):

    dirty_sizes = get_dirty(self, ppinfo['pid'])
    
    # memhis need an array 
    return [dirty_sizes['private']]

def get_dirty(pself, pid):
    ProcAnalysis = pself.INTERNALS['Plg'].proc_analysis(pid)

    return ProcAnalysis.DirtyRSS()