0xtools
0xtools copied to clipboard
Fix missing newlines when formatting python3
Currently python3 gives this (python2 has some newlines for readability):
$ sudo psn -r -p 111525 -a -G syscall,wchan
Linux Process Snapper v1.1.0 by Tanel Poder [https://0x.tools]
Sampling /proc/stat, syscall, wchan for 5 seconds...
finished.
=== Active Threads ===========================================================================
samples | avg_threads | comm | state | syscall | wchan
----------------------------------------------------------------------------------------------
100 | 1.00 | (perl) | (zombie) | [kernel_thread] | 0
100 | 1.00 | (perl) | Sleep (Interruptible) | nanosleep | hrtimer_nanosleep
samples: 100
(expected: 100)
total processes: 2, threads: 2
runtime: 5.00, measure time: 0.13
Python2:
$ sudo psn -r -p 111525 -a -G syscall,wchan
Linux Process Snapper v1.1.0 by Tanel Poder [https://0x.tools]
Sampling /proc/stat, syscall, wchan for 5 seconds... finished.
=== Active Threads ===========================================================================
samples | avg_threads | comm | state | syscall | wchan
----------------------------------------------------------------------------------------------
100 | 1.00 | (perl) | (zombie) | [kernel_thread] | 0
100 | 1.00 | (perl) | Sleep (Interruptible) | nanosleep | hrtimer_nanosleep
samples: 100 (expected: 100)
total processes: 2, threads: 2
runtime: 5.00, measure time: 0.13