diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-15 05:57:19 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-24 10:12:07 -0500 |
commit | 8bcf49c22c69e10b11960fb31ecef417a54a864c (patch) | |
tree | 4fcc4435bed2acf8577988150636f66b092b634d /tools | |
parent | 7fbaff3f59bb3546c411af6a031df253b436a181 (diff) | |
download | phosphor-debug-collector-8bcf49c22c69e10b11960fb31ecef417a54a864c.tar.gz phosphor-debug-collector-8bcf49c22c69e10b11960fb31ecef417a54a864c.zip |
dreport: Added top plugin
Plugin used for collecting top command output, which
provides linux process details.
Change-Id: I54633512b6b459d808379467a2f6e77c1ffb0fb8
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dreport.d/plugins.d/top | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/top b/tools/dreport.d/plugins.d/top new file mode 100644 index 0000000..a61e888 --- /dev/null +++ b/tools/dreport.d/plugins.d/top @@ -0,0 +1,13 @@ +#!/bin/bash +# +# config: 123 10 +# @brief: Collect top command output. +# + +. $DREPORT_INCLUDE/functions + +desc="top" +file_name="top.log" +command="top -n 1 -b" + +add_cmd_output "$command" "$file_name" "$desc" |