Implement packet profiling for mod packets, for #695

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