Skip to content

Instantly share code, notes, and snippets.

@cliff76
Last active June 2, 2017 20:25
Show Gist options
  • Select an option

  • Save cliff76/4076f77bf73ddb40c3923d3c73f4eadb to your computer and use it in GitHub Desktop.

Select an option

Save cliff76/4076f77bf73ddb40c3923d3c73f4eadb to your computer and use it in GitHub Desktop.
def xprocs() {
"adb shell ps".execute().text.split('\n').collect { it.split('\\s+') }
}
def procs() {
"""USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 10632 608 SyS_epoll_ 0000000000 S /init
root 2 0 0 0 kthreadd 0000000000 S kthreadd
root 3 2 0 0 smpboot_th 0000000000 S ksoftirqd/0
root 6 2 0 0 msm_mpm_wo 0000000000 D kworker/u8:0
root 7 2 0 0 rcu_gp_kth 0000000000 S rcu_preempt
root 8 2 0 0 rcu_gp_kth 0000000000 S rcu_sched
root 9 2 0 0 rcu_gp_kth 0000000000 S rcu_bh
root 10 2 0 0 smpboot_th 0000000000 S rcuc/0
root 11 2 0 0 rcu_boost_ 0000000000 S rcub/0
root 12 2 0 0 smpboot_th 0000000000 S migration/0
root 13 2 0 0 smpboot_th 0000000000 S watchdog/0
root 14 2 0 0 smpboot_th 0000000000 S watchdog/1
root 15 2 0 0 smpboot_th 0000000000 S migration/1
root 16 2 0 0 smpboot_th 0000000000 S rcuc/1
root 17 2 0 0 smpboot_th 0000000000 S ksoftirqd/1
root 19 2 0 0 worker_thr 0000000000 S kworker/1:0H
root 20 2 0 0 smpboot_th 0000000000 S watchdog/2
root 21 2 0 0 smpboot_th 0000000000 S migration/2
root 22 2 0 0 smpboot_th 0000000000 S rcuc/2
root 23 2 0 0 smpboot_th 0000000000 S ksoftirqd/2
root 26 2 0 0 smpboot_th 0000000000 S watchdog/3
root 27 2 0 0 smpboot_th 0000000000 S migration/3
root 28 2 0 0 smpboot_th 0000000000 S rcuc/3
root 29 2 0 0 smpboot_th 0000000000 S ksoftirqd/3
root 31 2 0 0 worker_thr 0000000000 S kworker/3:0H
root 32 2 0 0 rescuer_th 0000000000 S khelper
root 33 2 0 0 rescuer_th 0000000000 S netns
root 34 2 0 0 rescuer_th 0000000000 S perf
root 35 2 0 0 rescuer_th 0000000000 S smd_channel_clo
root 36 2 0 0 kthread_wo 0000000000 S dsps_smd_trans_
root 37 2 0 0 kthread_wo 0000000000 S lpass_smd_trans
root 38 2 0 0 kthread_wo 0000000000 S mpss_smd_trans_
root 39 2 0 0 kthread_wo 0000000000 S wcnss_smd_trans
root 40 2 0 0 kthread_wo 0000000000 S rpm_smd_trans_g
root 41 2 0 0 watchdog_k 0000000000 S msm_watchdog
root 43 2 0 0 rescuer_th 0000000000 S rpm_requests
root 44 2 0 0 kthread_wo 0000000000 S smem_native_mps
root 45 2 0 0 kthread_wo 0000000000 S mpss_smem_glink
root 46 2 0 0 kthread_wo 0000000000 S smem_native_lpa
root 47 2 0 0 kthread_wo 0000000000 S lpass_smem_glin
root 48 2 0 0 kthread_wo 0000000000 S smem_native_dsp
root 49 2 0 0 kthread_wo 0000000000 S dsps_smem_glink
root 50 2 0 0 kthread_wo 0000000000 S smem_native_rpm
root 51 2 0 0 kthread_wo 0000000000 S rpm_smem_glink_
root 54 2 0 0 rescuer_th 0000000000 S deferwq
root 55 2 0 0 irq_thread 0000000000 S irq/260-cpr3
root 56 2 0 0 irq_thread 0000000000 S irq/261-cpr3_ce
root 57 2 0 0 irq_thread 0000000000 S irq/262-cpr3
root 58 2 0 0 rescuer_th 0000000000 S mpm
root 60 2 0 0 watchdog 0000000000 S khungtaskd
root 61 2 0 0 rescuer_th 0000000000 S writeback
root 62 2 0 0 rescuer_th 0000000000 S crypto
root 63 2 0 0 rescuer_th 0000000000 S bioset
root 64 2 0 0 rescuer_th 0000000000 S kblockd
root 65 2 0 0 ion_heap_d 0000000000 S system
root 66 2 0 0 rescuer_th 0000000000 S ipa_power_mgmt
root 67 2 0 0 rescuer_th 0000000000 S sps_ipa_power_m
root 69 2 0 0 rescuer_th 0000000000 S ipawq14
root 70 2 0 0 rescuer_th 0000000000 S iparepwq14
root 72 2 0 0 rescuer_th 0000000000 S ipawq47
root 73 2 0 0 rescuer_th 0000000000 S iparepwq47
root 74 2 0 0 rescuer_th 0000000000 S ipawq13
root 75 2 0 0 rescuer_th 0000000000 S iparepwq13
root 76 2 0 0 rescuer_th 0000000000 S ipa_rm_wq
root 77 2 0 0 rescuer_th 0000000000 S ipa_interrupt_w
root 78 2 0 0 rescuer_th 0000000000 S ipa_holb_wq
root 79 2 0 0 irq_thread 0000000000 S irq/281-arm-smm
root 80 2 0 0 irq_thread 0000000000 S irq/285-arm-smm
root 81 2 0 0 irq_thread 0000000000 S irq/288-arm-smm
root 82 2 0 0 irq_thread 0000000000 S irq/291-arm-smm
root 83 2 0 0 irq_thread 0000000000 S irq/299-arm-smm
root 84 2 0 0 irq_thread 0000000000 S irq/302-arm-smm
root 85 2 0 0 irq_thread 0000000000 S irq/305-arm-smm
root 86 2 0 0 irq_thread 0000000000 S irq/309-arm-smm
root 87 2 0 0 irq_thread 0000000000 S irq/322-arm-smm
root 88 2 0 0 irq_thread 0000000000 S irq/330-arm-smm
root 89 2 0 0 irq_thread 0000000000 S irq/335-arm-smm
root 90 2 0 0 rescuer_th 0000000000 S devfreq_wq
root 91 2 0 0 rescuer_th 0000000000 S governor_msm_ad
root 93 2 0 0 rescuer_th 0000000000 S cfg80211
root 95 2 0 0 irq_thread 0000000000 S irq/186-bcl_vba
root 96 2 0 0 irq_thread 0000000000 S irq/185-bcl_iba
root 119 2 0 0 rescuer_th 0000000000 S power_off_alarm
root 120 2 0 0 kswapd 0000000000 S kswapd0
root 121 2 0 0 fsnotify_m 0000000000 S fsnotify_mark
root 122 2 0 0 ecryptfs_t 0000000000 S ecryptfs-kthrea
root 144 2 0 0 rescuer_th 0000000000 S ad_calc_wq
root 145 2 0 0 kthread_wo 0000000000 S rot_thread_0
root 146 2 0 0 kthread_wo 0000000000 S rot_thread_1
root 147 2 0 0 dsi_event_ 0000000000 D mdss_dsi_event
root 148 2 0 0 rescuer_th 0000000000 S mdss_dsi_dba
root 149 2 0 0 rescuer_th 0000000000 S hdmi_tx_workq
root 150 2 0 0 kthread_wo 0000000000 S vsync_retire_wo
root 151 2 0 0 kthread_wo 0000000000 S hdcp_tz_lib
root 152 2 0 0 kthread_wo 0000000000 S hdmi_hdcp2p2
root 153 2 0 0 rescuer_th 0000000000 S glink_ssr_wq
root 154 2 0 0 rescuer_th 0000000000 S glink_lbsrv
root 155 2 0 0 rescuer_th 0000000000 S glink_xprt_wq
root 156 2 0 0 rescuer_th 0000000000 S IPCRTR_mpss_smd
root 157 2 0 0 rescuer_th 0000000000 S IPCRTR_lpass_sm
root 158 2 0 0 rescuer_th 0000000000 S IPCRTR
root 159 2 0 0 rescuer_th 0000000000 S IPCRTR_dsps_smd
root 160 2 0 0 rescuer_th 0000000000 S IPCRTR
root 161 2 0 0 rescuer_th 0000000000 S IPCRTR
root 162 2 0 0 rescuer_th 0000000000 S apr_driver
root 163 2 0 0 rescuer_th 0000000000 S mem_share_svc
root 164 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 165 2 0 0 rescuer_th 0000000000 S msm_ipc_router
root 166 2 0 0 rescuer_th 0000000000 S glink_pkt_wq
root 167 2 0 0 rescuer_th 0000000000 S qmi_svc_event_w
root 168 2 0 0 rescuer_th 0000000000 S k_hsuart
root 169 2 0 0 kthread_wo 0000000000 S msm_serial_hs_0
root 170 2 0 0 kthread_wo 0000000000 S msm_serial_hs_0
root 171 2 0 0 add_hwgene 0000000000 S hwrng
root 173 2 0 0 rescuer_th 0000000000 S diag_real_time_
root 174 2 0 0 rescuer_th 0000000000 S diag_wq
root 175 2 0 0 rescuer_th 0000000000 S DIAG_USB_diag
root 176 2 0 0 rescuer_th 0000000000 S diag_cntl_wq
root 177 2 0 0 rescuer_th 0000000000 S diag_dci_wq
root 178 2 0 0 rescuer_th 0000000000 S DIAG_SMD_MODEM_
root 179 2 0 0 rescuer_th 0000000000 S DIAG_SMD_MODEM_
root 180 2 0 0 rescuer_th 0000000000 S DIAG_SMD_MODEM_
root 181 2 0 0 rescuer_th 0000000000 S DIAG_SMD_MODEM_
root 182 2 0 0 rescuer_th 0000000000 S DIAG_SMD_MODEM_
root 183 2 0 0 rescuer_th 0000000000 S DIAG_SMD_LPASS_
root 184 2 0 0 rescuer_th 0000000000 S DIAG_SMD_LPASS_
root 185 2 0 0 rescuer_th 0000000000 S DIAG_SMD_LPASS_
root 186 2 0 0 rescuer_th 0000000000 S DIAG_SMD_LPASS_
root 187 2 0 0 rescuer_th 0000000000 S DIAG_SMD_LPASS_
root 188 2 0 0 rescuer_th 0000000000 S DIAG_SMD_WCNSS_
root 189 2 0 0 rescuer_th 0000000000 S DIAG_SMD_WCNSS_
root 190 2 0 0 rescuer_th 0000000000 S DIAG_SMD_WCNSS_
root 191 2 0 0 rescuer_th 0000000000 S DIAG_SMD_WCNSS_
root 192 2 0 0 rescuer_th 0000000000 S DIAG_SMD_WCNSS_
root 193 2 0 0 rescuer_th 0000000000 S DIAG_SMD_SENSOR
root 194 2 0 0 rescuer_th 0000000000 S DIAG_SMD_SENSOR
root 195 2 0 0 rescuer_th 0000000000 S DIAG_SMD_SENSOR
root 196 2 0 0 rescuer_th 0000000000 S DIAG_SMD_SENSOR
root 197 2 0 0 rescuer_th 0000000000 S DIAG_SMD_SENSOR
root 198 2 0 0 rescuer_th 0000000000 S DIAG_SOCKMODEM_
root 199 2 0 0 rescuer_th 0000000000 S DIAG_SOCKMODEM_
root 200 2 0 0 rescuer_th 0000000000 S DIAG_SOCKMODEM_
root 201 2 0 0 rescuer_th 0000000000 S DIAG_SOCKMODEM_
root 202 2 0 0 rescuer_th 0000000000 S DIAG_SOCKMODEM_
root 203 2 0 0 rescuer_th 0000000000 S DIAG_SOCKLPASS_
root 204 2 0 0 rescuer_th 0000000000 S DIAG_SOCKLPASS_
root 205 2 0 0 rescuer_th 0000000000 S DIAG_SOCKLPASS_
root 206 2 0 0 rescuer_th 0000000000 S DIAG_SOCKLPASS_
root 207 2 0 0 rescuer_th 0000000000 S DIAG_SOCKLPASS_
root 208 2 0 0 rescuer_th 0000000000 S DIAG_SOCKWCNSS_
root 209 2 0 0 rescuer_th 0000000000 S DIAG_SOCKWCNSS_
root 210 2 0 0 rescuer_th 0000000000 S DIAG_SOCKWCNSS_
root 211 2 0 0 rescuer_th 0000000000 S DIAG_SOCKWCNSS_
root 212 2 0 0 rescuer_th 0000000000 S DIAG_SOCKWCNSS_
root 213 2 0 0 rescuer_th 0000000000 S DIAG_SOCKSENSOR
root 214 2 0 0 rescuer_th 0000000000 S DIAG_SOCKSENSOR
root 215 2 0 0 rescuer_th 0000000000 S DIAG_SOCKSENSOR
root 216 2 0 0 rescuer_th 0000000000 S DIAG_SOCKSENSOR
root 217 2 0 0 rescuer_th 0000000000 S DIAG_SOCKSENSOR
root 218 2 0 0 rescuer_th 0000000000 S DIAG_CNTL_SOCKE
root 219 2 0 0 rescuer_th 0000000000 S kgsl-workqueue
root 220 2 0 0 rescuer_th 0000000000 S kgsl-mementry
root 221 2 0 0 kthread_wo 0000000000 S kgsl_worker_thr
root 222 2 0 0 rescuer_th 0000000000 S kgsl-events
root 223 2 0 0 rescuer_th 0000000000 S kgsl_devfreq_wq
root 224 2 0 0 irq_thread 0000000000 S irq/441-soc:fp_
root 225 2 0 0 rescuer_th 0000000000 S qcrypto_seq_res
root 246 2 0 0 scsi_error 0000000000 S scsi_eh_0
root 247 2 0 0 rescuer_th 0000000000 S scsi_tmf_0
root 248 2 0 0 rescuer_th 0000000000 S ufs_pm_qos_0
root 249 2 0 0 rescuer_th 0000000000 S ufs_clkscaling_
root 250 2 0 0 kthread_wo 0000000000 S spi0
root 251 2 0 0 kthread_wo 0000000000 S spi6
root 252 2 0 0 rescuer_th 0000000000 S bond0
root 253 2 0 0 rescuer_th 0000000000 S usbnet
root 254 2 0 0 rescuer_th 0000000000 S sharedmem_qmi_w
root 255 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 256 2 0 0 diag_socke 0000000000 S kworker/u8:3
root 257 2 0 0 diag_socke 0000000000 S kworker/u8:4
root 261 2 0 0 irq_thread 0000000000 S irq/479-fsc_int
root 262 2 0 0 rescuer_th 0000000000 S k_gserial
root 263 2 0 0 rescuer_th 0000000000 S k_ipa_usb
root 264 2 0 0 rescuer_th 0000000000 S uether
root 265 2 0 0 rescuer_th 0000000000 S k_gbridge
root 266 2 0 0 irq_thread 0000000000 S irq/480-synapti
root 267 2 0 0 rescuer_th 0000000000 S dsx_rebuild_wor
root 268 2 0 0 rescuer_th 0000000000 S dsx_exp_workque
root 269 2 0 0 irq_thread 0000000000 S irq/417-vl53l0_
root 270 2 0 0 diag_socke 0000000000 S kworker/u8:5
root 274 2 0 0 rescuer_th 0000000000 S msm_vidc_worker
root 275 2 0 0 rescuer_th 0000000000 S pm_workerq_venu
root 276 2 0 0 irq_thread 0000000000 S irq/292-arm-smm
root 277 2 0 0 irq_thread 0000000000 S irq/293-arm-smm
root 279 2 0 0 irq_thread 0000000000 S irq/294-arm-smm
root 280 2 0 0 irq_thread 0000000000 S irq/295-arm-smm
root 281 2 0 0 rescuer_th 0000000000 S msm_cci_wq
root 282 2 0 0 rescuer_th 0000000000 S msm_cci_wq
root 283 2 0 0 rescuer_th 0000000000 S msm_cpp_workque
root 284 2 0 0 irq_thread 0000000000 S irq/223-full-so
root 285 2 0 0 irq_thread 0000000000 S irq/225-delta-s
root 286 2 0 0 irq_thread 0000000000 S irq/229-soft-co
root 287 2 0 0 irq_thread 0000000000 S irq/230-soft-ho
root 288 2 0 0 rescuer_th 0000000000 S batt_timer
root 289 2 0 0 rescuer_th 0000000000 S HTC_BATTERY_FB
root 290 2 0 0 irq_thread 0000000000 S irq/235-batt-mi
root 291 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 292 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 293 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 294 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 295 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 296 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 297 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 298 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 299 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 300 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 301 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 302 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 303 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 304 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 305 2 0 0 irq_thread 0000000000 S irq/244-tsens_i
root 306 2 0 0 irq_thread 0000000000 S irq/245-tsens_c
root 307 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 308 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 309 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 310 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 311 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 312 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 313 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 314 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 315 2 0 0 irq_thread 0000000000 S irq/352-tsens_i
root 316 2 0 0 irq_thread 0000000000 S irq/353-tsens_c
root 317 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 318 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 319 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 320 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 321 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 322 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 323 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 324 2 0 0 rescuer_th 0000000000 S dm_bufio_cache
root 325 2 0 0 cpufreq_in 0000000000 S cfinteractive
root 326 2 0 0 rescuer_th 0000000000 S binder
root 327 2 0 0 irq_thread 0000000000 S irq/478-nanohub
root 328 2 0 0 irq_thread 0000000000 S irq/472-nanohub
root 329 2 0 0 nanohub_kt 0000000000 S nanohub
root 330 2 0 0 rescuer_th 0000000000 S fwu_workqueue
root 332 2 0 0 irq_thread 0000000000 S irq/239-qpnp_sc
root 333 2 0 0 irq_thread 0000000000 S irq/10-spdm_bw_
root 334 2 0 0 rescuer_th 0000000000 S ipv6_addrconf
root 335 2 0 0 rfcomm_run 0000000000 S krfcommd
root 336 2 0 0 irq_thread 0000000000 S irq/670-adsp
root 337 2 0 0 rescuer_th 0000000000 S sysmon_wq
root 338 2 0 0 rescuer_th 0000000000 S adsp
root 339 2 0 0 rescuer_th 0000000000 S sys_mon
root 340 2 0 0 irq_thread 0000000000 S irq/702-slpi
root 341 2 0 0 rescuer_th 0000000000 S slpi
root 342 2 0 0 rescuer_th 0000000000 S sys_mon
root 343 2 0 0 irq_thread 0000000000 S irq/638-modem
root 344 2 0 0 irq_thread 0000000000 S irq/171-hs_phy_
root 345 2 0 0 irq_thread 0000000000 S irq/172-ss_phy_
root 346 2 0 0 irq_thread 0000000000 S irq/173-msm_dwc
root 347 2 0 0 rescuer_th 0000000000 S usb_bam_wq
root 349 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 350 2 0 0 irq_thread 0000000000 S irq/190-chg-err
root 351 2 0 0 irq_thread 0000000000 S irq/196-chg-tap
root 352 2 0 0 irq_thread 0000000000 S irq/197-chg-tcc
root 353 2 0 0 irq_thread 0000000000 S irq/195-chg-rec
root 354 2 0 0 irq_thread 0000000000 S irq/194-chg-p2f
root 355 2 0 0 irq_thread 0000000000 S irq/198-batt-ho
root 356 2 0 0 irq_thread 0000000000 S irq/199-batt-wa
root 357 2 0 0 irq_thread 0000000000 S irq/201-batt-co
root 358 2 0 0 irq_thread 0000000000 S irq/200-batt-co
root 359 2 0 0 irq_thread 0000000000 S irq/204-batt-mi
root 360 2 0 0 irq_thread 0000000000 S irq/203-batt-lo
root 361 2 0 0 irq_thread 0000000000 S irq/206-usbin-u
root 362 2 0 0 irq_thread 0000000000 S irq/207-usbin-o
root 363 2 0 0 irq_thread 0000000000 S irq/208-usbin-s
root 364 2 0 0 irq_thread 0000000000 S irq/211-aicl-do
root 365 2 0 0 irq_thread 0000000000 S irq/209-otg-fai
root 366 2 0 0 irq_thread 0000000000 S irq/210-otg-oc
root 367 2 0 0 irq_thread 0000000000 S irq/212-usbid-c
root 368 2 0 0 irq_thread 0000000000 S irq/213-dcin-uv
root 369 2 0 0 irq_thread 0000000000 S irq/215-power-o
root 370 2 0 0 irq_thread 0000000000 S irq/216-temp-sh
root 371 2 0 0 irq_thread 0000000000 S irq/217-wdog-ti
root 376 2 0 0 rescuer_th 0000000000 S rq_stats
root 377 2 0 0 rescuer_th 0000000000 S FILE_FREE
root 378 2 0 0 irq_thread 0000000000 S irq/310-arm-smm
root 379 2 0 0 irq_thread 0000000000 S irq/311-arm-smm
root 380 2 0 0 irq_thread 0000000000 S irq/312-arm-smm
root 381 2 0 0 irq_thread 0000000000 S irq/313-arm-smm
root 382 2 0 0 irq_thread 0000000000 S irq/314-arm-smm
root 383 2 0 0 irq_thread 0000000000 S irq/315-arm-smm
root 384 2 0 0 irq_thread 0000000000 S irq/316-arm-smm
root 385 2 0 0 irq_thread 0000000000 S irq/317-arm-smm
root 386 2 0 0 rescuer_th 0000000000 S sb-1
root 387 2 0 0 ngd_slim_r 0000000000 D ngd_rx_thread1
root 388 2 0 0 ngd_notify 0000000000 D ngd_notify_sl1
root 389 2 0 0 rescuer_th 0000000000 S k_bam_data
root 390 2 0 0 rescuer_th 0000000000 S f_mtp
root 391 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 392 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 393 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 394 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 395 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 396 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 397 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 398 2 0 0 sensor_sys 0000000000 S therm_core:noti
root 399 2 0 0 irq_thread 0000000000 S irq/259-lmh-int
root 400 2 0 0 rescuer_th 0000000000 S pmi8994_wq
root 401 2 0 0 rescuer_th 0000000000 S ipa_A7_svc
root 402 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 403 2 0 0 rescuer_th 0000000000 S clnt_req
root 404 2 0 0 rescuer_th 0000000000 S clnt_resp
root 405 2 0 0 rescuer_th 0000000000 S clnt_req
root 407 2 0 0 rescuer_th 0000000000 S kdmflush
root 409 2 0 0 rescuer_th 0000000000 S bioset
root 410 2 0 0 rescuer_th 0000000000 S kverityd
root 411 2 0 0 rescuer_th 0000000000 S bioset
root 412 2 0 0 rescuer_th 0000000000 S bioset
root 413 2 0 0 rescuer_th 0000000000 S bioset
root 415 2 0 0 worker_thr 0000000000 S kworker/3:1H
root 418 2 0 0 kjournald2 0000000000 S jbd2/dm-0-8
root 419 2 0 0 rescuer_th 0000000000 S ext4-rsv-conver
root 421 1 6008 744 poll_sched 0000000000 S /sbin/ueventd
root 423 2 0 0 worker_thr 0000000000 S kworker/1:1H
root 427 2 0 0 rescuer_th 0000000000 S kdmflush
root 428 2 0 0 rescuer_th 0000000000 S bioset
root 429 2 0 0 rescuer_th 0000000000 S kverityd
root 430 2 0 0 rescuer_th 0000000000 S bioset
root 431 2 0 0 rescuer_th 0000000000 S bioset
root 432 2 0 0 rescuer_th 0000000000 S bioset
root 433 2 0 0 kjournald2 0000000000 S jbd2/dm-1-8
root 434 2 0 0 rescuer_th 0000000000 S ext4-rsv-conver
root 436 2 0 0 kjournald2 0000000000 S jbd2/sdd3-8
root 437 2 0 0 rescuer_th 0000000000 S ext4-rsv-conver
logd 438 1 22108 5552 sigsuspend 0000000000 S /system/bin/logd
root 443 2 0 0 kauditd_th 0000000000 S kauditd
root 471 2 0 0 rescuer_th 0000000000 S lpass_IPCRTR
root 472 2 0 0 rescuer_th 0000000000 S LOOPBACK
root 474 2 0 0 irq_thread 0000000000 S irq/318-arm-smm
root 488 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 489 2 0 0 kthread_wo 0000000000 S msm_slim_qmi_cl
root 490 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 491 2 0 0 irq_thread 0000000000 S irq/409-wcd9xxx
root 496 2 0 0 rescuer_th 0000000000 S dsps_IPCRTR
root 497 2 0 0 rescuer_th 0000000000 S LOOPBACK
system 499 1 9408 696 binder_thr 0000000000 S /system/bin/servicemanager
system 500 1 157704 9192 SyS_epoll_ 0000000000 S /system/bin/surfaceflinger
audioserver 502 1 88972 7500 binder_thr 0000000000 S /system/bin/audioserver
root 515 2 0 0 rescuer_th 0000000000 S tfa98xx
root 518 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 523 2 0 0 irq_thread 0000000000 S irq/286-arm-smm
root 524 2 0 0 irq_thread 0000000000 S irq/287-arm-smm
root 562 2 0 0 irq_thread 0000000000 S irq/300-arm-smm
root 563 2 0 0 irq_thread 0000000000 S irq/303-arm-smm
root 564 2 0 0 irq_thread 0000000000 S irq/301-arm-smm
root 565 2 0 0 irq_thread 0000000000 S irq/304-arm-smm
root 567 2 0 0 kjournald2 0000000000 S jbd2/sda35-8
root 568 2 0 0 rescuer_th 0000000000 S ext4-rsv-conver
root 569 1 5484 376 __skb_recv 0000000000 S /system/bin/debuggerd
root 570 1 10152 444 __skb_recv 0000000000 S /system/bin/debuggerd64
root 571 1 28552 648 hrtimer_na 0000000000 S /system/bin/vold
root 573 570 9896 100 __skb_recv 0000000000 S debuggerd64:signaller
root 574 569 5100 84 __skb_recv 0000000000 S debuggerd:signaller
system 588 1 11772 504 do_wait 0000000000 S /vendor/bin/qseecomd
system 590 588 23824 292 sigsuspend 0000000000 S /vendor/bin/qseecomd
root 605 1 6424 336 SyS_epoll_ 0000000000 S /sbin/healthd
system 606 1 21664 428 do_sigtime 0000000000 S /system/bin/pm-service
nobody 608 1 17328 484 poll_sched 0000000000 S /system/bin/rmt_storage
root 609 1 8880 592 poll_sched 0000000000 S /vendor/bin/msm_irqbalance
root 610 1 8924 736 SyS_epoll_ 0000000000 S /system/bin/lmkd
root 612 2 0 0 usleep_ran 0000000000 D kschedfreq:0
root 620 2 0 0 irq_thread 0000000000 S irq/19-408000.q
shell 629 1 22548 1080 poll_sched 0000000000 S /sbin/adbd
system 630 1 15628 484 hrtimer_na 0000000000 S /system/bin/pm-proxy
root 635 1 107184 400 sigsuspend 0000000000 S /vendor/bin/thermal-engine
media 636 1 11984 288 poll_sched 0000000000 S /system/bin/adsprpcd
system 638 1 10724 416 poll_sched 0000000000 S /system/bin/imsqmidaemon
radio 641 1 12188 352 futex_wait 0000000000 S /system/bin/port-bridge
radio 642 1 103136 2832 __skb_recv 0000000000 S /system/bin/netmgrd
root 643 1 16340 592 futex_wait 0000000000 S /vendor/bin/perfd
root 645 1 2136872 29640 poll_sched 0000000000 S zygote64
root 646 1 1572412 9816 poll_sched 0000000000 S zygote
cameraserver 647 1 159600 2684 binder_thr 0000000000 S /system/bin/cameraserver
drm 648 1 17592 676 binder_thr 0000000000 S /system/bin/drmserver
root 649 1 9728 812 unix_strea 0000000000 S /system/bin/installd
keystore 650 1 12880 1252 binder_thr 0000000000 S /system/bin/keystore
mediacodec 651 1 743480 24820 binder_thr 0000000000 S media.codec
media 652 1 26828 2388 binder_thr 0000000000 S /system/bin/mediadrmserver
mediaex 653 1 53012 4036 binder_thr 0000000000 S media.extractor
media 654 1 90108 3588 binder_thr 0000000000 S /system/bin/mediaserver
root 655 1 47456 2824 binder_thr 0000000000 S /system/bin/netd
radio 656 1 86288 4916 hrtimer_na 0000000000 S /system/bin/rild
system 657 1 15760 924 binder_thr 0000000000 S /system/bin/fingerprintd
system 658 1 18084 368 futex_wait 0000000000 S /system/bin/time_daemon
system 659 1 19984 1012 SyS_epoll_ 0000000000 S /system/bin/cnd
system 664 1 15868 616 __skb_recv 0000000000 S /system/bin/cnss-daemon
gps 665 1 11816 384 sigsuspend 0000000000 S /system/bin/loc_launcher
root 667 1 7656 140 do_sigtime 0000000000 S /vendor/bin/nanohub_slpi
system 668 1 12536 644 binder_thr 0000000000 S /system/bin/gatekeeperd
root 670 1 59736 516 SyS_epoll_ 0000000000 S /system/bin/update_engine
root 672 2 0 0 rescuer_th 0000000000 S DS
system 684 1 14128 460 poll_sched 0000000000 S /system/bin/imsdatadaemon
root 766 2 0 0 do_hotplug 0000000000 S msm_thermal:hot
root 767 2 0 0 do_freq_mi 0000000000 S msm_thermal:fre
root 769 2 0 0 do_thermal 0000000000 S msm_thermal:the
root 851 2 0 0 rescuer_th 0000000000 S mpss_IPCRTR
root 852 2 0 0 rescuer_th 0000000000 S SSM_RTR_MODEM_A
root 860 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
root 872 2 0 0 rescuer_th 0000000000 S LOOPBACK
root 878 2 0 0 rescuer_th 0000000000 S qmi_hndl0000000
system 1058 645 2559584 291208 SyS_epoll_ 0000000000 S system_server
gps 1144 665 22140 1048 futex_wait 0000000000 S lowi-server
gps 1145 665 28544 460 poll_sched 0000000000 S slim_daemon
root 1189 2 0 0 rescuer_th 0000000000 S DATA1
root 1190 2 0 0 rescuer_th 0000000000 S DATA2
root 1191 2 0 0 rescuer_th 0000000000 S DATA3
root 1192 2 0 0 rescuer_th 0000000000 S DATA4
root 1194 2 0 0 rescuer_th 0000000000 S DATA11
root 1224 2 0 0 rescuer_th 0000000000 S ipawq48
root 1225 2 0 0 rescuer_th 0000000000 S iparepwq48
root 1443 2 0 0 wlan_loggi 0000000000 S wlan_logging_th
root 1444 2 0 0 VosWDThrea 0000000000 S VosWDThread
root 1445 2 0 0 VosMCThrea 0000000000 S VosMCThread
root 1446 2 0 0 VosTlshimR 0000000000 S VosTlshimRxThre
wifi 1456 1 13260 1716 poll_sched 0000000000 S /system/bin/wpa_supplicant
bluetooth 1462 646 1172660 22936 SyS_epoll_ 0000000000 S com.android.bluetooth
u0_a75 1477 645 1839376 76056 SyS_epoll_ 0000000000 S com.google.android.inputmethod.latin
media_rw 1482 571 16040 1040 inotify_re 0000000000 S /system/bin/sdcard
u0_a42 1526 645 1853956 136088 SyS_epoll_ 0000000000 S com.android.systemui
system 1642 645 1693832 28956 SyS_epoll_ 0000000000 S com.quicinc.cne.CNEService
radio 1656 645 1761092 54488 SyS_epoll_ 0000000000 S com.android.phone
root 1790 2 0 0 irq_thread 0000000000 S irq/397-msm_hs_
bluetooth 1880 1 16628 704 poll_sched 0000000000 S /system/bin/wcnss_filter
root 1889 2 0 0 worker_thr 0000000000 S kworker/u9:2
u0_a23 2096 645 1688636 26664 SyS_epoll_ 0000000000 S com.google.android.ext.services
u0_a19 2340 645 1956816 104140 SyS_epoll_ 0000000000 S com.google.android.gms.persistent
u0_a19 2390 645 2109636 103836 SyS_epoll_ 0000000000 S com.google.android.gms
u0_a45 2460 645 2302052 27144 SyS_epoll_ 0000000000 S com.google.android.googlequicksearchbox:interactor
nfc 2483 645 1715672 33724 SyS_epoll_ 0000000000 S com.android.nfc
radio 2490 645 1688128 23908 SyS_epoll_ 0000000000 S com.android.ims.rcsservice
radio 2501 645 1694180 22752 SyS_epoll_ 0000000000 S com.qualcomm.qti.rcsbootstraputil
system 2520 645 1690832 22220 SyS_epoll_ 0000000000 S com.google.SSRestartDetector
u0_a71 2569 645 1707252 26836 SyS_epoll_ 0000000000 S com.google.vr.vrcore
u0_a147 2580 645 1801212 48040 SyS_epoll_ 0000000000 S com.google.android.wearable.app:background
u0_a33 2587 645 1707824 40408 SyS_epoll_ 0000000000 S com.pushbullet.android:background
u0_a45 2639 645 2773012 128848 SyS_epoll_ 0000000000 S com.google.android.googlequicksearchbox:search
root 2974 2 0 0 cpe_worker 0000000000 D cpe-worker-thre
u0_a121 3231 646 1157172 24088 SyS_epoll_ 0000000000 S com.instagram.android:mqtt
root 3622 2 0 0 worker_thr 0000000000 S kworker/u8:2
u0_a227 3644 646 1718752 23520 SyS_epoll_ 0000000000 S com.facebook.katana:videoplayer
u0_a227 3670 646 1714844 25196 SyS_epoll_ 0000000000 S com.facebook.katana:notification
u0_a227 3771 646 2062532 155196 SyS_epoll_ 0000000000 S com.facebook.katana
u0_a19 3833 645 1851216 28268 SyS_epoll_ 0000000000 S com.google.android.gms.feedback
root 4817 2 0 0 worker_thr 0000000000 S kworker/u9:6
root 5117 2 0 0 worker_thr 0000000000 S kworker/u9:0
root 5352 2 0 0 worker_thr 0000000000 S kworker/u9:1
u0_a253 5405 645 2533472 64972 SyS_epoll_ 0000000000 S predix.ge.com.referenceapplication
radio 5839 645 1685748 22916 SyS_epoll_ 0000000000 S com.qualcomm.qcrilmsgtunnel
system 5894 1 20028 648 futex_wait 0000000000 S /system/bin/ATFWD-daemon
root 6106 2 0 0 worker_thr 0000000000 S kworker/2:1
u0_i17 6231 646 1195040 15276 SyS_epoll_ 0000000000 S com.android.chrome:sandboxed_process8
root 6344 2 0 0 worker_thr 0000000000 S kworker/1:3
root 6345 2 0 0 worker_thr 0000000000 S kworker/0:0
root 6348 2 0 0 __mdss_fb_ 0000000000 D mdss_fb0
root 6349 2 0 0 worker_thr 0000000000 S kworker/2:2
root 6357 2 0 0 worker_thr 0000000000 S kworker/u8:6
u0_a121 6368 646 1167956 40460 SyS_epoll_ 0000000000 S com.instagram.android
u0_a133 6414 646 1136460 29504 SyS_epoll_ 0000000000 S com.turner.tbs.android.conan
root 6507 2 0 0 worker_thr 0000000000 S kworker/2:4
u0_a120 6526 646 1815424 75132 SyS_epoll_ 0000000000 S com.amazon.mShop.android
u0_a164 6637 646 1786616 71024 SyS_epoll_ 0000000000 S com.amazon.mShop.android.shopping
root 6796 2 0 0 worker_thr 0000000000 S kworker/3:2
root 6854 2 0 0 worker_thr 0000000000 S kworker/3:5
root 6855 2 0 0 worker_thr 0000000000 S kworker/1:4
shell 6878 629 8124 1516 __skb_recv 714c22de84 S logcat
u0_a83 7629 645 2368684 65460 SyS_epoll_ 0000000000 S com.google.android.apps.photos
root 8450 2 0 0 worker_thr 0000000000 S kworker/0:2
u0_a189 8506 646 2186360 521324 SyS_epoll_ 0000000000 S com.samsung.smartviewad
root 9433 2 0 0 worker_thr 0000000000 S kworker/2:2H
root 11272 2 0 0 worker_thr 0000000000 S kworker/0:5
root 11561 2 0 0 worker_thr 0000000000 S kworker/0:3
root 11937 2 0 0 worker_thr 0000000000 S kworker/1:0
mdnsr 12347 1 5340 528 poll_sched 0000000000 S /system/bin/mdnsd
shell 12497 629 9108 1628 0 7259666e24 R ps
shell 12501 629 7708 1412 sigsuspend 73896ca4f4 S /system/bin/sh
shell 12508 12501 5264 904 0 79070470a0 R dumpsys
system 12524 645 1686656 27452 SyS_epoll_ 0000000000 S com.qualcomm.telephony
u0_a85 12551 645 1709656 36848 SyS_epoll_ 0000000000 S com.google.android.apps.messaging:rcs
u0_a1 12568 645 1696164 33356 SyS_epoll_ 0000000000 S com.google.android.ims
u0_a146 12609 646 1682100 26400 SyS_epoll_ 0000000000 S com.smartdevicelink.router
u0_a147 12628 645 1700852 31988 SyS_epoll_ 0000000000 S com.google.android.wearable.app:flow
u0_a195 12653 646 1816700 30744 SyS_epoll_ 0000000000 S com.ultimateguitar.tabprofree
root 12845 2 0 0 usleep_ran 0000000000 D kschedfreq:2
u0_a141 12871 645 2268236 46320 SyS_epoll_ 0000000000 S com.pandora.android
u0_a145 12943 646 1203340 33800 SyS_epoll_ 0000000000 S com.amazon.dee.app
u0_a125 13022 646 1654912 21288 SyS_epoll_ 0000000000 S com.epicgames.virtuos.UnrealEngine3.notification
root 13271 2 0 0 worker_thr 0000000000 S kworker/0:2H
root 13524 2 0 0 worker_thr 0000000000 S kworker/1:1
u0_a118 14731 645 1722800 44304 SyS_epoll_ 0000000000 S com.flowdock.jorge
u0_a254 15397 645 1745232 63692 SyS_epoll_ 0000000000 S com.ge.hellodroid
u0_a4 15591 645 1700548 39068 SyS_epoll_ 0000000000 S android.process.acore
u0_a160 15725 645 2403024 45332 SyS_epoll_ 0000000000 S com.fandango
root 16032 2 0 0 irq_thread 0000000000 S irq/289-arm-smm
root 16040 2 0 0 irq_thread 0000000000 S irq/306-arm-smm
root 16377 2 0 0 worker_thr 0000000000 S kworker/0:0H
root 16470 2 0 0 worker_thr 0000000000 S kworker/u8:1
u0_a19 16538 645 1693776 34740 SyS_epoll_ 0000000000 S com.google.process.gapps
u0_a56 18442 646 1162016 15268 SyS_epoll_ 0000000000 S com.android.chrome:privileged_process0
root 20258 2 0 0 worker_thr 0000000000 S kworker/2:0H
u0_a87 20391 645 1888588 57248 SyS_epoll_ 0000000000 S com.google.android.gm
u0_a102 20573 646 1833276 465332 SyS_epoll_ 0000000000 S com.wb.goog.injustice.brawler2017
u0_a32 20770 645 1779436 83032 SyS_epoll_ 0000000000 S com.google.android.apps.nexuslauncher
u0_a228 21825 646 1827300 58392 SyS_epoll_ 0000000000 S com.facebook.orca
u0_a14 22039 645 1697364 36608 SyS_epoll_ 0000000000 S android.process.media
root 22811 2 0 0 worker_thr 0000000000 S kworker/u8:7
root 23833 2 0 0 worker_thr 0000000000 S kworker/3:1
u0_a125 24667 646 2317288 354628 SyS_epoll_ 0000000000 S com.wb.goog.injustice
u0_a78 24913 645 1921304 44744 SyS_epoll_ 0000000000 S com.google.android.music:main
u0_a77 25963 645 2483108 83004 SyS_epoll_ 0000000000 S com.google.android.apps.maps
u0_a70 26384 646 1169232 14516 SyS_epoll_ 0000000000 S com.google.android.tts
root 27101 2 0 0 worker_thr 0000000000 S kworker/u9:4
root 27102 2 0 0 worker_thr 0000000000 S kworker/u9:5
u0_a217 28123 645 2267052 52244 SyS_epoll_ 0000000000 S com.yelp.android
u0_a168 28478 645 1898872 71136 SyS_epoll_ 0000000000 S com.google.android.apps.inbox
u0_a56 30158 646 1311972 43960 SyS_epoll_ 0000000000 S com.android.chrome
root 30607 2 0 0 worker_thr 0000000000 S kworker/0:1
root 30924 2 0 0 worker_thr 0000000000 S kworker/1:2
root 30994 2 0 0 worker_thr 0000000000 S kworker/3:0
u0_a35 31473 645 1904440 43676 SyS_epoll_ 0000000000 S com.android.vending
root 32156 2 0 0 worker_thr 0000000000 S kworker/3:4
root 32463 2 0 0 worker_thr 0000000000 S kworker/3:3""".split('\n').collect { it.split('\\s+') }
}
def procs = procs()
import groovy.swing.SwingBuilder
import javax.swing.*
import java.awt.*
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import javax.swing.table.*
def swing = new SwingBuilder()
class Model {
def data
Model() { data = procs()[1..-1] as Object[][] }
}
swing.edt {
frame(title: 'Frame', defaultCloseOperation: JFrame.DISPOSE_ON_CLOSE, pack: true, show: true) {
vbox {
textlabel = label('Processes')
swing.panel(){
scrollPane {
table(new JTable(new DefaultTableModel(procs[1..-1] as Object[][], procs[0]))) {
preferredScrollableViewportSize: {new Dimension(500, 70)}
FillsViewportHeight: true
actionPerformed: { evt ->
println "Event $evt"
}
}
}
}
button(
text: 'Click Me',
actionPerformed: {
textlabel.text = "Clicked ${count} time(s)."
println "Clicked!"
}
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment