c11770970124ee63c010d789f4940c1df6d0bd7a
1 /* Licensed to the public under the Apache License 2.0. */
5 return L
.Class
.extend({
8 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
9 if (plugin_instance
== "") {
11 title
: "%H: Processes",
12 vlabel
: "Processes/s",
16 "sleeping", "running", "paging",
17 "blocked", "stopped", "zombies"
22 ps_state_sleeping
: { color
: "0000ff", title
: "Sleeping" },
23 ps_state_running
: { color
: "008000", title
: "Running" },
24 ps_state_paging
: { color
: "ffff00", title
: "Paging" },
25 ps_state_blocked
: { color
: "ff5000", title
: "Blocked" },
26 ps_state_stopped
: { color
: "555555", title
: "Stopped" },
27 ps_state_zombies
: { color
: "ff0000", title
: "Zombies" }
35 title
: "%H: CPU time used by %pi",
39 ps_cputime
: [ "syst", "user" ]
59 title
: "%H: Threads and processes belonging to %pi",
64 ps_count
: [ "threads", "processes" ]
68 ps_count__threads
: { color
: "00ff00", title
: "Threads" },
69 ps_count__processes
: { color
: "0000bb", title
: "Processes" }
75 title
: "%H: Page faults in %pi",
76 vlabel
: "Page faults",
80 ps_pagefaults
: [ "minflt", "majflt" ]
84 ps_pagefaults__minflt
: { color
: "0000ff", title
: "Minor" },
85 ps_pagefaults__majflt
: { color
: "ff0000", title
: "Major" }
91 title
: "%H: Resident segment size (RSS) of %pi",
94 number_format
: "%5.1lf%sB",
99 ps_rss
: { color
: "0000ff", title
: "Resident segment" }
105 title
: "%H: Virtual memory size (VSZ) of %pi",
108 number_format
: "%5.1lf%sB",
113 ps_vm
: { color
: "0000ff", title
: "Virtual memory" }