HI Phil,

Try executing the word a few thousand times a in loop:

[ 100000 [ foo ] times ] time

Then subtract the time taken to run the loop:

[ 100000 [ ] times ] time

Ideally we would have support for high-resolution OS-specific timers.  
This can be implemented by having a generic word dispatching on a  
hook which is set on a per-platform basis.

Slava

On 26-Oct-07, at 5:42 PM, Phil Dawes wrote:

> Hi all,
>
> I'd like to do some cumulative profiling to find out how long is being
> spent executing a word. Unfortunately each invocation takes less  
> than a
> millisecond - is there any way of getting a finer granularity?
> (don't worry if not because I can get this from C, but just wanted to
> check I wasn't missing something)
>
> Thanks,
>
> Phil
>
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to