hulu / roku-dev-cli

A command-line developer tool for loading Roku builds
Apache License 2.0
26 stars 8 forks source link

adding reporter for parsing rendezvous logs #14

Closed strattonbrazil closed 5 years ago

strattonbrazil commented 5 years ago

This adds a reporter that parses the logrendezvous output from telnet and builds a meaningful report. The report breaks down:

Example output:

=== Rendezvous by Frequency ===
18 - pkg:/components/some_brs_file.brs(27) (avg. duration: 0.001s)
14 - pkg:/components/some_other_brs_file.brs(178) (avg. duration: 0.023s)
...

=== Rendezvous by Longest Single Duration ===
0.369s - pkg:/components/some_brs_file.brs(24)
0.291s - pkg:/components/some_other_brs_file.brs(178)
...

=== Adjacent Rendezvous (opportunity to use `queueFields`?) ===
pkg:/components/some_brs_file.brs - lines adjacent to other rendezvous: 236-238, 251-258
pkg:/components/some_other_brs_file.brs - lines adjacent to other rendezvous: 45-47
...

To test: