Windows 2000
Blaine Buxton
blainebuxton at hotmail.com
Fri Mar 8 15:59:22 UTC 2002
>From: "Andreas Raab" <Andreas.Raab at gmx.de>
>To: <squeak-dev at lists.squeakfoundation.org>
>Subject: RE: Windows 2000
>Date: Fri, 8 Mar 2002 00:56:51 +0100
>
>"Any" object? What is the result of:
>
> MessageTally spyOn:[
> 42 inspect.
> World doOneCycleNow.
> ].
>
>?
>
>Cheers,
> - Andreas
Alright,
I did some more research into this matter last night. And I couldn't get the
problem to manifest itself inside of the code above to check it. But, I
found it was happening after the doit was complete. Strange, I thought. So I
did the following in a workspace:
| process |
process:=Processor activeProcess.
[MessageTally spyOnProcess: process forMilliseconds: 10000] fork.
Now, I then selected MessageTally and selected "explore" from the menu.
And I got something very interesting (look at the leaving section in
particular). Now, as a side note I tried doing 'MessageTally explore' and I
couldn't find the problem, it wasn't until I used the menu and "explore"d it
from there...That I got this:
- 964 tallies, 11984 msec.
**Tree**
60.9% {7298ms} primitives
39.1% {4686ms} Project class>>spawnNewProcess
39.1% {4686ms} PasteUpMorph>>doOneCycle
39.1% {4686ms} WorldState>>doOneCycleFor:
21.3% {2553ms} WorldState>>interCyclePause:
|21.3% {2553ms} Delay>>wait
17.8% {2133ms} WorldState>>doOneCycleNowFor:
17.8% {2133ms} HandMorph>>processEvents
17.8% {2133ms} HandMorph>>handleEvent:
17.8% {2133ms} HandMorph>>sendMouseEvent:
17.8% {2133ms} HandMorph>>sendEvent:focus:clear:
17.8% {2133ms} PasteUpMorph(Morph)>>processEvent:
17.8% {2133ms} PasteUpMorph>>processEvent:using:
17.8% {2133ms} PasteUpMorph(Morph)>>processEvent:using:
17.8% {2133ms}
MorphicEventDispatcher>>dispatchEvent:with:
17.8% {2133ms}
MorphicEventDispatcher>>dispatchMouseDown:with:
17.8% {2133ms}
SystemWindow(Morph)>>processEvent:using:
17.8% {2133ms}
MorphicEventDispatcher>>dispatchEvent:with:
17.8% {2133ms}
MorphicEventDispatcher>>dispatchMouseDown:with:
17.8% {2133ms}
PluggableTextMorph(Morph)>>processEvent:using:
[17.8% {2133ms} MorphicEventDispatcher>>dispatchEvent:with:
[ 17.8% {2133ms} MorphicEventDispatcher>>dispatchMouseDown:with:
[ 17.8% {2133ms} TransformMorph(Morph)>>processEvent:using:
[ 17.8% {2133ms} MorphicEventDispatcher>>dispatchEvent:with:
[ 17.8% {2133ms} MorphicEventDispatcher>>dispatchMouseDown:with:
[ 17.8% {2133ms} TextMorphForEditView(Morph)>>processEvent:using:
[ 17.8% {2133ms} MorphicEventDispatcher>>dispatchEvent:with:
[ 17.8% {2133ms}
MorphicEventDispatcher>>dispatchMouseDown:with:
[ 17.8% {2133ms} TextMorphForEditView(Morph)>>handleEvent:
[ 17.8% {2133ms} MouseButtonEvent>>sentTo:
[ 17.8% {2133ms}
TextMorphForEditView(Morph)>>handleMouseDown:
[ 17.8% {2133ms} TextMorphForEditView>>mouseDown:
[ 17.8% {2133ms}
PluggableTextMorph>>yellowButtonActivity:
[ 17.8% {2133ms} MenuMorph>>invokeModal:
[ 17.8% {2133ms}
MenuMorph>>invokeModalAt:in:allowKeyboard:
[ 17.6% {2109ms} PasteUpMorph>>doOneSubCycle
[ 17.6% {2109ms}
WorldState>>doOneSubCycleFor:
[[17.6% {2109ms} WorldState>>doOneCycleFor:
[[ 16.9% {2025ms} WorldState>>interCyclePause:
[[ 16.9% {2025ms} Delay>>wait
**Leaves**
60.9% {7298ms} StandardFileStream>>close
38.2% {4578ms} Delay>>wait
**Memory**
old +0 bytes
young -59,552 bytes
used -59,552 bytes
free +59,552 bytes
**GCs**
full 0 totalling 0ms (0.0% uptime)
incr 56 totalling 72ms (1.0% uptime), avg 1.0ms
tenures 0
root table 0 overflows
It seems the pause is on the StandardFileStream>>close message. So, this
prompted me to do the following:
MessageTally spyOn:[
(StandardFileStream fileNamed: 'test.txt')
nextPutAll: 'simple test';
cr;
close].
And nothing unusual and no abnormal file pauses! I'm thinking it might be
the writing to the changes file that might cause the pause. As a side note,
I turned off File Access from the security menu and VOILA, problem is gone.
Anyone got anymore clues that I could look for? I do have a virus scan
running on my machine which I can't turn off (pesky work machines!) and I
haven't had time to try it on my 2000 machine at home yet, but I was
noticing similiar behavior with it before.
Thanks for your help...The MessageTally class is too cool!
------------------------------------------------
Blaine Buxton
http://www.mp3.com/blainebuxton
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the Squeak-dev
mailing list
|