Changeset 954a329 for tools/tracereport


Ignore:
Timestamp:
06/27/07 16:32:30 (14 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
21ab138
Parents:
9b06a91
Message:

Added uncompressed trace size to the misc-report in tracereport
Fixed incorrect byte-ordering of wire length in legacyeth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/misc_report.c

    r466aed6 r954a329  
    1414static uint64_t packets = 0;
    1515
     16static uint64_t capture_bytes = 0;
     17
    1618void misc_per_packet(struct libtrace_packet_t *packet)
    1719{
     
    2325        has_starttime = has_endtime = true;
    2426        ++packets;
     27        capture_bytes += trace_get_capture_length(packet) + trace_get_framing_length(packet);
    2528}
    2629
     
    8285        fprintf(out, "Average packet rate: %.02f packets/sec\n",
    8386                        packets/(endtime-starttime));
     87        fprintf(out, "Uncompressed trace size: %" PRIu64 "\n", capture_bytes);
    8488}
Note: See TracChangeset for help on using the changeset viewer.