[aida] Profiling
Janko Mivšek
janko.mivsek at eranova.si
Wed Oct 27 10:43:05 CEST 2010
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
More information about the Aida
mailing list