output the encryption level and the size for more events
diff --git a/tools/render/processed_trace.cc b/tools/render/processed_trace.cc index 147920e..b5c3c18 100644 --- a/tools/render/processed_trace.cc +++ b/tools/render/processed_trace.cc
@@ -320,11 +320,19 @@ table->AddRow("Time", FormatTime(packet->time_us())); - if (packet->event_type() == PACKET_SENT) { - table->AddRow("Size", absl::StrCat(packet->packet_size(), " bytes")); + if(packet->event_type() == PACKET_SENT || + packet->event_type() == PACKET_LOST || + packet->event_type() == PACKET_RECEIVED) { table->AddRow("Encryption", EncryptionLevelToString(packet->encryption_level())); + } + if (packet->event_type() == PACKET_SENT || + packet->event_type() == PACKET_LOST) { + table->AddRow("Size", absl::StrCat(packet->packet_size(), " bytes")); + } + + if (packet->event_type() == PACKET_SENT) { table->AddHeader("Frame list"); for (const Frame& frame : packet->frames()) { switch (frame.frame_type()) { @@ -374,10 +382,6 @@ } } } - if(packet->event_type() == PACKET_RECEIVED) { - table->AddRow("Encryption", - EncryptionLevelToString(packet->encryption_level())); - } if (packet->has_transport_state()) { const TransportState& state = packet->transport_state();