Skip to content

Instantly share code, notes, and snippets.

@sunapi386
Created February 9, 2017 03:08
Show Gist options
  • Select an option

  • Save sunapi386/c79418a87964ccaafc611cb2eadfd354 to your computer and use it in GitHub Desktop.

Select an option

Save sunapi386/c79418a87964ccaafc611cb2eadfd354 to your computer and use it in GitHub Desktop.
train stats
bash-3.2$ find . \( -iname "*.h" -o -iname "*.c" \) -exec /bin/echo {} + | xargs awk -f lc.awk
--------------------------------File---Code---Comments---Raw Lines
-------------- ./include/kernel/scheduler.h 68 11 93
./user/sensor.c 154 25 190
./track/new/track_data_new.c 2352 1 2357
./include/user/clock_drawer.h 4 0 6
./include/utils.h 36 0 46
./include/user/parser.h 5 0 6
./user/train.c 27 0 33
./commentcount.c 83 10 99
./include/user/user_tasks.h 11 0 14
./user/syscall.c 73 2 88
./track/new/track_data_new.h 4 2 9
./user/clock_drawer.c 32 8 34
./include/cpsr.h 17 2 24
./user/parser.c 269 62 324
./include/va.h 10 1 16
./include/kernel/timer.h 6 0 8
./include/events.h 8 1 11
./include/bwio.h 16 3 32
./user/nameserver.c 80 10 99
./kernel/bwio.c 219 13 257
./include/user/message_benchmarks.h 8 0 10
./user/hwi_tester.c 22 0 26
./include/kernel/context_switch.h 7 0 9
./include/kernel/message_passing.h 133 42 205
./track/track_node.h 23 6 30
./track/legacy/model.c 225 7 259
./include/user/vt100.h 34 6 50
./user/io.c 314 91 481
./track/track_data.c 2352 1 2357
./user/clockserver.c 169 16 206
./user/k3userTask.c 90 7 109
./track/legacy/model.h 48 3 60
./kernel/kernel.c 167 30 219
./include/kernel/task_queue.h 7 0 9
./user/user_tasks.c 57 11 73
./user/rps.c 264 47 321
./track/track_data.h 4 2 9
./include/kernel/task.h 68 33 116
./include/user/syscall.h 43 114 184
./include/user/train.h 8 0 10
./include/ts7200.h 66 39 86
./include/kernel/interrupts.h 9 4 16
./kernel/task.c 90 10 113
./include/debug.h 39 3 49
./kernel/timer.c 17 3 25
./include/priority.h 23 2 31
./include/kernel/uart.h 14 0 18
./user/message_benchmarks.c 54 5 73
./kernel/interrupts.c 231 73 312
./include/user/nameserver.h 4 0 6
./include/user/io.h 7 1 10
./user/vt100.c 17 1 21
./kernel/utils.c 244 12 291
./kernel/uart.c 96 13 124
./include/user/sensor.h 4 0 6
./include/kernel/pl190.h 12 5 20
./include/user/clockserver.h 4 0 6
--------------------------------------------------------------------------------
Total code: 8448
Total comments: 738
Total raw lines: 9696
Comment percentage: 8.033965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment