mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprofd: start on optimized getprocessinfo helper
Calling all the individual function calls to get process information would be considerably inefficient, so we can coalesce a bunch of that and change our process-model implementation (and proc source) to use this.
This commit is contained in:
@ -52,5 +52,25 @@
|
||||
<method name="ListProcesses">
|
||||
<arg name="processes" type="ai" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
GetProcessInfo:
|
||||
@attributes: a comma separated string of attributes to load
|
||||
|
||||
Gets information about the processes on the system.
|
||||
|
||||
Attributes can be a comma separated list of the following:
|
||||
|
||||
- pid: (int32): the process identifier, always included
|
||||
- cmdline: (string): Provides the command line
|
||||
- maps: (string): Provide the contents of /proc/pid/maps
|
||||
- statm: (string): Provide the contents of /proc/pid/statm
|
||||
- mountinfo: (string): Provide the contents of/proc/pid/mountinfo
|
||||
|
||||
Returns: an array of vardict containing the requested attributs
|
||||
-->
|
||||
<method name="GetProcessInfo">
|
||||
<arg name="attributes" type="s" direction="in"/>
|
||||
<arg name="processes" type="aa{sv}" direction="out"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
|
||||
Reference in New Issue
Block a user