CamHenlin / serialperformanceanalyzer

provides performance analysis services for machines over a serial port or by tailing a text file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serialperformanceanalyzer

Useful if you are trying to add performance analysis to a Retro68 application on a classic Macintosh or emulator, where running gdb or some sort of better analysis tooling might not be an option.

Usage

More in depth instructions on how this library can be used are available here

Options

Options:

  • Can be run tailing a flat file by specifiying process.env.FILE_PATH
  • Can be run using serial by specifiying process.env.SERIAL

Profiling messages (from your code)

Sending profiling messages:

  • PROFILE_START x - starts tracking x
  • PROFILE_END x - stops tracking x. Measures and stores how long x took to run
  • PROFILE_COMPLETE - analyzes all profile data and prints it out in 3 charts

Output

3 charts:

  • Most total time spent in each profile mark overall
  • Longest individual profile mark
  • Time spent in each profile mark

About

provides performance analysis services for machines over a serial port or by tailing a text file


Languages

Language:JavaScript 100.0%