1 /* Licensed to the public under the Apache License 2.0. */
6 return baseclass.extend({
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10 if (plugin_instance == "") {
12 title: "%H: Processes",
13 vlabel: "Processes/s",
17 "sleeping", "running", "paging",
18 "blocked", "stopped", "zombies"
23 ps_state_sleeping: { color: "0000ff", title: "Sleeping" },
24 ps_state_running : { color: "008000", title: "Running" },
25 ps_state_paging : { color: "ffff00", title: "Paging" },
26 ps_state_blocked : { color: "ff5000", title: "Blocked" },
27 ps_state_stopped : { color: "555555", title: "Stopped" },
28 ps_state_zombies : { color: "ff0000", title: "Zombies" }
36 title: "%H: CPU time used by %pi",
40 ps_cputime: [ "syst", "user" ]
60 title: "%H: Threads and processes belonging to %pi",
65 ps_count: [ "threads", "processes" ]
69 ps_count__threads : { color: "00ff00", title: "Threads" },
70 ps_count__processes: { color: "0000bb", title: "Processes" }
76 title: "%H: Page faults in %pi",
77 vlabel: "Page faults",
81 ps_pagefaults: [ "minflt", "majflt" ]
85 ps_pagefaults__minflt: { color: "0000ff", title: "Minor" },
86 ps_pagefaults__majflt: { color: "ff0000", title: "Major" }
92 title: "%H: Resident segment size (RSS) of %pi",
95 number_format: "%5.1lf%sB",
100 ps_rss: { color: "0000ff", title: "Resident segment" }
106 title: "%H: Virtual memory size (VSZ) of %pi",
109 number_format: "%5.1lf%sB",
114 ps_vm: { color: "0000ff", title: "Virtual memory" }