Project

General

Profile

Feature #6416

ptime -p could support multiple processes

Added by Robert Mustacchi over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2015-10-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Currently ptime -p only supports one process. Furthermore, the implementation and documentation do not match its usage. Specifically the documentation implies that -m must come before -p. However, in reality this is not the case and many people might use ptime -p $$ -m. As a result, we can't quite mimic the other ptools exactly here; however, ptime itself already has an odd construction in that it tries to match time(1) more so. To handle this we instead just allow -p to optionally take a comma separated list of processes and report information about all of them.

#1

Updated by Electric Monk about 5 years ago

  • Status changed from New to Closed

git commit 8551f527eff6d736e8191795ffafe40abbdb71e6

commit  8551f527eff6d736e8191795ffafe40abbdb71e6
Author: Robert Mustacchi <rm@joyent.com>
Date:   2016-02-25T15:11:55.000Z

    6416 ptime -p could support multiple processes
    Reviewed by: Bryan Cantrill <bryan@joyent.com>
    Reviewed by: Ryan Zezeski <ryan@zinascii.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF