r-lib / ps

R package to query, list, manipulate system processes
https://ps.r-lib.org/
Other
78 stars 20 forks source link

`ps::ps()` output that looks like command line ps #72

Closed gaborcsardi closed 2 months ago

gaborcsardi commented 5 years ago

Would be nice. Coming from #71.

gaborcsardi commented 2 months ago

Seems like this is not happening. I like the ps::ps() output with pillar, anyway:

❯ ps::ps()
# A data frame: 565 × 11
     pid  ppid name                          username status   user system    rss     vms created             ps_handle 
 * <int> <int> <chr>                         <chr>    <chr>   <dbl>  <dbl>  <dbl>   <dbl> <dttm>              <I<list>> 
 1 45100     1 pbs                           gaborcs… runni… 0.0163 0.0165 6.13e6 4.20e11 2024-08-24 07:49:56 <ps_handl>
 2 45048     1 mdworker_shared               gaborcs… runni… 0.0454 0.0176 1.66e7 4.20e11 2024-08-24 07:49:38 <ps_handl>
 3 45047     1 mdworker_shared               gaborcs… runni… 0.0474 0.0172 1.67e7 4.20e11 2024-08-24 07:49:38 <ps_handl>
 4 44925     1 mdworker_shared               gaborcs… runni… 0.189  0.0480 2.93e7 4.20e11 2024-08-24 07:48:49 <ps_handl>
 5 44924     1 mdworker_shared               gaborcs… runni… 0.0632 0.0218 2.18e7 4.20e11 2024-08-24 07:48:49 <ps_handl>
 6 44922 12630 Google Chrome Helper (Render… gaborcs… runni… 0.126  0.0334 1.20e8 1.66e12 2024-08-24 07:48:48 <ps_handl>
 7 44921 12630 Google Chrome Helper (Render… gaborcs… runni… 1.74   0.907  2.57e8 1.66e12 2024-08-24 07:48:48 <ps_handl>
 8 44898 12630 Google Chrome Helper (Render… gaborcs… runni… 0.0460 0.0188 8.69e7 1.66e12 2024-08-24 07:47:02 <ps_handl>
 9 44874     1 com.apple.Safari.History      gaborcs… runni… 0.0280 0.0200 1.77e7 4.21e11 2024-08-24 07:45:12 <ps_handl>
10 44860 12630 Google Chrome Helper (Render… gaborcs… runni… 3.96   0.510  3.44e8 1.66e12 2024-08-24 07:44:16 <ps_handl>
# ℹ 555 more rows
# ℹ Use `print(n = ...)` to see more rows