Hi Herbert,
Let me start this discussion in another thread: In 6.1 for benchmarking and profiling there is AidaProfiling in Aida-Tests, just that it is finished for VW and not for Squeak yet. But principles are the same, here is the profile method for VW: AidaProfiling>>profileAnswerToVW | site req resp | site := AIDASite new initialize. req := self sampleRequest. "/admin.html?view=login&id=123456" resp := site answerTo: req. TimeProfiler new samplingInterval: 10; profile: [100 timesRepeat: [site answerTo: req]]. ^resp "to check if it is actually as expected" As you see the request receiving is simulated and repeated many times to get a good profile. To keep the same session an additional query parameter is added to the Url: id=123456. Hope this helps Best regards Janko -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Hi Janko,
JM> | site req resp | JM> site := AIDASite new initialize. JM> req := self sampleRequest. "/admin.html?view=login&id=123456" JM> resp := site answerTo: req. just to be clear, I want to check Aida + my app. Actually your example does exactly this. So I implemented logging in AidaSite>>answerTo: as well as in HTTPConnection>>readRequestFor: to find out that HTTPRequest and HTTPResponse both refer to a SwazooTask which refers to the request and the corresponding response. So I'll only log the requests. I already have a clear idea how to replace the id's (not session but element id's) so I have something to do for tomorrow. JM> As you see the request receiving is simulated and repeated many times to JM> get a good profile. I will use all my previously recorded requests instead of repeating one single request. JM> To keep the same session an additional query JM> parameter is added to the Url: id=123456. OK. Let's see if this will work if I repeat a sequence of requests. Assuming the sequence starts with a login and ends with a logout. JM> Hope this helps Yes, thanks. Cheers, Herbert mailto:[hidden email] _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Hi,
Does anyone knows if there is any XPDL Parser for Smalltalk ? I want to convert a BPM (XPDL) file into Smalltalk objects. Regards, Bruno -----Mensaje original----- De: [hidden email] [mailto:[hidden email]] En nombre de Herbert König Enviado el: Saturday, October 30, 2010 6:24 PM Para: AIDA/Web general discussion list Asunto: Re: [aida] Profiling Hi Janko, JM> | site req resp | JM> site := AIDASite new initialize. JM> req := self sampleRequest. "/admin.html?view=login&id=123456" JM> resp := site answerTo: req. just to be clear, I want to check Aida + my app. Actually your example does exactly this. So I implemented logging in AidaSite>>answerTo: as well as in HTTPConnection>>readRequestFor: to find out that HTTPRequest and HTTPResponse both refer to a SwazooTask which refers to the request and the corresponding response. So I'll only log the requests. I already have a clear idea how to replace the id's (not session but element id's) so I have something to do for tomorrow. JM> As you see the request receiving is simulated and repeated many times to JM> get a good profile. I will use all my previously recorded requests instead of repeating one single request. JM> To keep the same session an additional query JM> parameter is added to the Url: id=123456. OK. Let's see if this will work if I repeat a sequence of requests. Assuming the sequence starts with a login and ends with a logout. JM> Hope this helps Yes, thanks. Cheers, Herbert mailto:[hidden email] _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Free forum by Nabble | Edit this page |