Add cpuprofile to rtlamr-specific flags.
Add duplicate packet detection, refactor LogMessage for clarity.