 
                     trace(getSampleCount());
                     for each (var s:Sample in getSamples()) {
-                        trace(s);
+                        trace(sampleToString(s));
                     }
                     return;
                 case "STOP SAMPLING":

                    _socket.send("OK STOP");
                    return;
    	    }
    	}
    	
    	private function connect():void {

    import flash.events.SecurityErrorEvent;
    import flash.net.XMLSocket;
    import flash.system.System;
    import flash.utils.getQualifiedClassName;
    import flash.sampler.*;

    public class Agent extends Sprite {
