You could use output buffering to check the amount of stuff outputted by the script, but it wont take into account the email sent, file recieved from another server etc.
The onl way i can think off is if you have a compression module like mod_gzip, you can check the logs.