diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | docs/_static/irq.png | bin | 0 -> 3980 bytes | |||
-rw-r--r-- | docs/aoa/index.rst | 1 | ||||
-rw-r--r-- | docs/aoa/irq.rst | 14 | ||||
-rw-r--r-- | glances/plugins/glances_irq.py | 8 |
5 files changed, 20 insertions, 4 deletions
@@ -19,6 +19,7 @@ Enhancements and new features: * Add Application Monitoring Process plugin (issue #780) * Add a new "Ports scanner" plugin (issue #734) + * Add a new IRQ monitoring plugin (issue #911) * Improve IP plugin to display public IP address (issue #646) * CPU additionnal stats monitoring: Context switch, Interrupts... (issue #810) * Filter processes by others stats (username) (issue #748) diff --git a/docs/_static/irq.png b/docs/_static/irq.png Binary files differnew file mode 100644 index 00000000..397a4e18 --- /dev/null +++ b/docs/_static/irq.png diff --git a/docs/aoa/index.rst b/docs/aoa/index.rst index ddef3689..adccf082 100644 --- a/docs/aoa/index.rst +++ b/docs/aoa/index.rst @@ -30,6 +30,7 @@ Legend: disk fs folders + irq sensors ps monitor diff --git a/docs/aoa/irq.rst b/docs/aoa/irq.rst new file mode 100644 index 00000000..8df73c1e --- /dev/null +++ b/docs/aoa/irq.rst @@ -0,0 +1,14 @@ +.. _irq: + +IRQ +=== + +.. image:: ../_static/irq.png + +Glances displays the top 5 interrupts rate. This plugin is only available on +GNU/Linux machine (stats are grabbed from the /proc/interrupts file). + +How to read the informations: + +* The first Column is the IRQ number / name +* The Second column says how many times the CPU core has been interrupted during the last second diff --git a/glances/plugins/glances_irq.py b/glances/plugins/glances_irq.py index a7e5e698..e1c55b8b 100644 --- a/glances/plugins/glances_irq.py +++ b/glances/plugins/glances_irq.py @@ -56,12 +56,12 @@ class Plugin(GlancesPlugin): def update(self): """Update the IRQ stats""" - if not LINUX: # only available on GNU/Linux - return [] - # Reset the list self.reset() + if not LINUX: # only available on GNU/Linux + return self.stats + if self.input_method == 'local': with open('/proc/interrupts') as irq_proc: time_since_update = getTimeSinceLastUpdate('irq') @@ -105,7 +105,7 @@ class Plugin(GlancesPlugin): # Init the return message ret = [] - if not LINUX: # only available on GNU/Linux + if not LINUX: # only available on GNU/Linux return ret # Only process if stats exist and display plugin enable... |