More examples | Use Packed | Unpacked Version of the script.
You can handle different ***start and ***start event in different classes to monitor different actions, or use ArcGISUtil's jsonpstart and ArcGISUtil.jsonpend event to monitor all server request.