Improve packet profiling for #947

Signed-off-by: Ross Allan <rallanpcl@gmail.com>