File: 1003

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (47 lines) | stat: -rwxr-xr-x 1,484 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# PCP QA Test No. 1003
# Check that Global clause is detected
#
seq=`basename $0`
echo "QA output created by $seq"

status=0	# success is the default!
. ./common.qt
trap "_cleanup_qt; exit \$status" 0 1 2 3 15

which pmchart >/dev/null 2>&1 || _notrun "pmchart not installed"

# real QA test starts here

cat <<End-of-File | pmchart -Dappl2 -C -c - 2>&1 | _filter_views
#pmchart
Version 1.1 host dynamic

Global width 800
Global height 600
Global points 30

Chart Title "Memory Usage" Style stacking
# IRIX
	Optional-Plot Color #f8ff00 Host * Metric mem.util.kernel
	Optional-Plot Color #00ffff Host * Metric mem.util.fs_ctl
	Optional-Plot Color #ff0000 Host * Metric mem.util.fs_dirty
	Optional-Plot Color #fe00ff Host * Metric mem.util.fs_clean
	Optional-Plot Color #0000fd Host * Metric mem.util.user

# IRIX and Linux
	Plot Color #00ff00 Host * Metric mem.util.free

# Linux
	Optional-Plot Color #fefe32 Host * Metric mem.util.mapped
	Optional-Plot Color #fe68ad Host * Metric mem.util.bufmem
	Optional-Plot Color #00f1ea Host * Metric mem.util.pageTables
	Optional-Plot Color #e873e4 Host * Metric mem.util.slab
	Optional-Plot Color #327ffe Host * Metric mem.util.cached
	Optional-Plot Color #007f00 Host * Metric mem.util.other

Chart Title "Dirty Buffers" Style stacking
	Optional-Plot Color #fe3732 Host * Metric mem.util.dirty
	Optional-Plot Color #ff8900 Host * Metric mem.util.writeback
	Optional-Plot Color #008900 Host * Metric mem.util.cache_clean
End-of-File