LoginSignup
4
6

More than 5 years have passed since last update.

androidのpsコマンドについてのメモ

Last updated at Posted at 2013-05-24

使えるオプションをソースコードを見て調べてみました。
(※意味は適当に検索して調べたので間違っているかもしれません)

-t : show thread. プロセスの次の行にthreadを表示

-x: show time. utime-ユーザモードでのCPU使用時間 stime-カーネルモードでのCPU使用時間をプロセス名の後ろに表示

-P: show policy. bg-BACKGROUND か、 fg-FORGROUNDかを表示。判別不能の場合はun、bgでもfgでもなかった場合はerと表示される

-p: show priority. prio-動的優先度 nice-静的優先度 rtprio-リアルタイム優先度 sched-スケジューリングポリシーを表示

-c: show cpu. 使われているCPUの番号を表示

数字: PIDフィルター

その他: Nameフィルター

複数のオプションを使いたい場合は、例えば、

ps -t -x -P -p -c

と一つ一つ指定します。

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6