times2svg - convert profiling numbers to SVG
times2svg [options] -i input.log -o output.svg
This script converts timing information, as extracted from log files, into a bootchart-style diagram of the chart.
Sep 28 06:03:22 srssweb2 SrsFrontEnd-srsdev[5465]: FE Times: ID=4,463603; type=RunLogCreate; 0=06:03:20.169630; tot=2.639; read=0.001; parseXML=0.006; send=0.002; recv=2.630; respond=0.000 Sep 28 06:03:23 srssweb2 FeRep-srsdev[3945]: Times: ID=4,463604; 0=06:03:23.171035; tot=0.566; read_config=0.002; valid_config=0.000; fork=0.001; read=0.002; init=0.000; lock=0.004; m0:spread=0.035; m0:send=0.004; m0:srspapp3=0.518; check=0.001; respond=0.000; check2=0.000 Sep 28 06:03:23 srssweb2 SrsFrontEnd-srsdev[5701]: FE Times: ID=4,463604; type=ScheduleUpdate; 0=06:03:23.162061; tot=0.580; read=0.001; parseXML=0.006; send=0.003; recv=0.569; respond=0.000
Specify where to read log lines from. Defaults to standard input.
Specify where to write output SVG to. Defaults to standard output.
Specify a tag to correlate multiple related log messages on in a mixed input stream. In this case, the output filename is taken to be a base name for writing output SVG files to.
Specify the maximum number of log lines expected for each correlatable log message.
Specify the longest time over which log messages are to be correlated.
Only perform parsing and correlation, and output a multi-document YAML stream, one combined set of profiles per document.
Only perform the template processing part of the process. A stream is expected on input as produced by --yo
--yo
Specify a YAML file that contains extra template parameters to override the defaults. Use to specify a file containing report title, headers, styles, etc.
Display a program usage screen and exit.
Display program version and exit.
Verbose command execution, displaying things like the commands run, their output, etc.
Suppress all normal program output; only display errors and warnings.
Display output to help someone debug this script, not the process going on.
To install Profile::Log, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Profile::Log
CPAN shell
perl -MCPAN -e shell install Profile::Log
For more information on module installation, please visit the detailed CPAN module installation guide.