Great - thanks Alfredo.
I've pulled your fix into my branch

git pull http://phildawes.net/2008/factor.git/ wordtimer

Slava: any chance wordtimer could go into master? (just as a stopgap 
until timed profiling goes into the factor profiler)

Cheers,

Phil

Alfredo Beaumont wrote:
> Ar, 2008eko Uztren 08a(e)an, Phil Dawes(e)k idatzi zuen:
>> Hi Slava, Hi Factor List,
>>
>> I made a vocab for time-profiling words. It works by annotating words
>> with code to record accumulated time in microseconds.
>>
>> git pull http://phildawes.net/2008/factor.git/ wordtimer
>>
>> example usage:
>> "myvocab" [ run-some-code ] profile-vocab
>>
>> ... <runs code and prints timings and number of calls>
>>
>> N.B. it isn't by any means perfect or even especially accurate, but
>> handy in the absence of a better accumulated time profiler.
>>
>> Hope it's useful to someone,
> 
> I find it very useful! It gave me an underflow though, you have a fix here:
> 
> git pull http://alfredobeaumont.org/factor.git wordtimer
> 
> Cheers



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to