usr/src/cmd/zsh/Completion/Solaris/Command/_prstat
changeset 72 82bde2a81435
parent 71 121736d79438
child 73 73cc228b67a6
equal deleted inserted replaced
71:121736d79438 72:82bde2a81435
     1 #compdef prstat
       
     2 
       
     3 _prstat()
       
     4 {
       
     5 	d_opt=(
       
     6 		"u"\:"seconds past the epoch"
       
     7 		"d"\:"standard date format"
       
     8 	)
       
     9 
       
    10 	sort_key=(
       
    11 		"cpu"\:"process CPU usage (default)"
       
    12 		"pri"\:"process priority"
       
    13 		"rss"\:"resident set size"
       
    14 		"size"\:"size of process image"
       
    15 		"time"\:"process execution time"
       
    16 	)
       
    17 
       
    18 	_arguments -A "-*" \
       
    19 		'-a[information about processes and users]' \
       
    20 		'-c[new reports below previous reports instead of overprinting them]' \
       
    21 		'-C[processes or lwps that are bound to processor sets in the list]:processor set list:' \
       
    22 		'-d[specify the representation of time]:time representation:(($d_opt))' \
       
    23 		'-h[only processes or lwps whose home lgroup is in the list]:lgroup list:' \
       
    24 		'-H[information about home lgroup]' \
       
    25 		'-j[only processes or lwps whose project ID is in the given list]:project list:' \
       
    26 		'-J[information about processes and projects]' \
       
    27 		'-k[only processes or lwps whose task ID is in tasklist]:task list'\
       
    28 		'-L[statistics for each light-weight process (LWP)]' \
       
    29 		'-m[microstate process accounting information]' \
       
    30 		'-n[restrict number of output lines]:ntop,[nbottom]' \
       
    31 		'-p[only processes whose process ID is in the list]:PID list' \
       
    32 		'-P[only processes or lwps which have most recently executed on a CPU in the list]:CPU list' \
       
    33 		'-R[Put prstat in the real time scheduling class]' \
       
    34 		'-s[Sort key (descending)]:key:(($sort_key))' \
       
    35 		'-S[Sort key (ascending)]:key:(($sort_key))' \
       
    36 		'-t[total usage summary for each user]' \
       
    37 		'-T[information about processes and tasks]' \
       
    38 		'-u[only processes whose effective user ID is in the list]:UID:_users' \
       
    39 		'-U[only processes whose real user ID is in the list]:UID:_users' \
       
    40 		'-v[verbose process usage]' \
       
    41 		'-z[only processes or LWPs whose zone ID is in the list]:zone ID:' \
       
    42 		'-Z[information about processes and zones]'
       
    43 }
       
    44 
       
    45 _prstat "$@"