[systemd-devel] journalctl to csv

Oleksii Shevchuk alxchk at gmail.com
Sun Jan 27 00:16:25 PST 2013


/tmp > time sh lid-orig.sh > out1 
sh lid-orig.sh > out1  1,21s user 2,20s system 18% cpu 18,594 total
/tmp > time sh lid.sh > out2 
sh lid.sh > out2  0,01s user 0,02s system 42% cpu 0,068 total
/tmp > diff out1 out2
/tmp >

journalctl -b MESSAGE='Lid closed.' -o export | grep SOURCE_REALTIME_TIMESTAMP |
while read line
do
    let "result=${line/_SOURCE_REALTIME_TIMESTAMP=/} / 1000000"
    echo $result 0
done

Use perf, Luke :)


More information about the systemd-devel mailing list