netdev: add source for network device information

This source parses the /proc/net/dev file to get basic statistics about
network throughput on the system.

We still need a specialized Aid and Visualizer so that we can render the
counter data in a more useful format.
This commit is contained in:
Christian Hergert
2019-06-26 12:38:54 -07:00
parent 0f497d5d1f
commit 00997fbd7f
5 changed files with 436 additions and 0 deletions

View File

@ -4,6 +4,13 @@
<object class="SysprofCpuAid" id="cpu_aid"/>
<object class="SysprofMemoryAid" id="memory_aid"/>
<object class="SysprofCallgraphAid" id="callgraph_aid"/>
<object class="SysprofAid" id="network_aid">
<property name="display-name" translatable="yes">Network</property>
<property name="icon-name">preferences-system-network-symbolic</property>
<child>
<object class="SysprofNetdevSource"/>
</child>
</object>
<object class="SysprofProxyAid" id="mutter_aid">
<property name="object-path">/org/gnome/Sysprof3/Profiler</property>
<property name="bus-type">session</property>
@ -148,6 +155,13 @@
<property name="visible">true</property>
</object>
</child>
<child>
<object class="SysprofAidIcon">
<property name="aid">network_aid</property>
<property name="selected">false</property>
<property name="visible">true</property>
</object>
</child>
</object>
</child>
</object>