diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-26 18:26:24 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-27 04:34:29 +0000 |
commit | 7eb3e47fa49806ea2cf59f0fa009240fae049a2b (patch) | |
tree | d668ff9ceae57934fe33582457fc5169f6e764ba /ui/proto_hier_stats.c | |
parent | c3a7986b86f5355e6bd1791f70b78c91bcdac247 (diff) | |
download | wireshark-7eb3e47fa49806ea2cf59f0fa009240fae049a2b.tar.gz wireshark-7eb3e47fa49806ea2cf59f0fa009240fae049a2b.tar.bz2 wireshark-7eb3e47fa49806ea2cf59f0fa009240fae049a2b.zip |
Try to squeeze some bytes out of the frame_data structure.
Make the time stamp precision a 4-bit bitfield, so, when combined with
the other bitfields, we have 32 bits. That means we put the flags at
the same structure level as the time stamp precision, so they can be
combined; that gets rid of an extra "flags." for references to the flags.
Put the two pointers next to each other, and after a multiple of 8 bytes
worth of other fields, so that there's no padding before or between them.
It's still not down to 64 bytes, which is the next lower power of 2, so
there's more work to do.
Change-Id: I6f3e9d9f6f48137bbee8f100c152d2c42adb8fbe
Reviewed-on: https://code.wireshark.org/review/31213
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/proto_hier_stats.c')
-rw-r--r-- | ui/proto_hier_stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/proto_hier_stats.c b/ui/proto_hier_stats.c index fd5e8aef74..18c559d485 100644 --- a/ui/proto_hier_stats.c +++ b/ui/proto_hier_stats.c @@ -172,7 +172,7 @@ process_record(capture_file *cf, frame_data *frame, column_info *cinfo, ph_stats /* Get stats from this protocol tree */ process_tree(edt.tree, ps); - if (frame->flags.has_ts) { + if (frame->has_ts) { /* Update times */ cur_time = nstime_to_sec(&frame->abs_ts); if (cur_time < ps->first_time) @@ -282,9 +282,9 @@ ph_stats_new(capture_file *cf) passed the display filter? If so, it should probably do so for other loops (see "file.c") that look only at those packets. */ - if (frame->flags.passed_dfilter) { + if (frame->passed_dfilter) { - if (frame->flags.has_ts) { + if (frame->has_ts) { if (tot_packets == 0) { double cur_time = nstime_to_sec(&frame->abs_ts); ps->first_time = cur_time; |