Building trace renderer on Linux:
libsdl2-dev
on Debian and related systems).libsdl2-dev
pulls those in).bazel build -c opt //tools/render/...
bazel-bin/tools/render/render_trace examples/example.qtr
.Building trace renderer on macOS:
bazel build -c opt --apple_platform_type=macos --cpu=darwin_x86_64 //tools/render/...
bazel-bin/tools/render/render_trace examples/example.qtr
.Note that macOS build requires a specific set of flags, because by default Bazel on macOS targets iOS.
The OpenGL-based renderer was built with the goal of rendering large traces in mind, and our testing has shown that it performs quite well with traces as large as 120MiB worth of data transferred (that's approximately 90,000 packets sent), even when ran on a machine with high-resolution screen and an integrated GPU.
This rendering script was originally built as a simple proof of concept for rendering the trace format, but still might be useful if other tools are not available. Instructions:
bazel build //tools/quic_trace_to_time_sequence_gnuplot
.tools/time_sequence_gnuplot.sh trace_file trace.png
.