In a message dated 4/28/2001 6:12:27 PM Eastern Daylight Time,
[EMAIL PROTECTED] writes:


> On 2001.04.28, Rob Mayoff <[EMAIL PROTECTED]> wrote:
> > > I'd like to conduct a quick informal poll.  What are the
> > > top 10 most commonly used ns_* API calls that you use?
> >
> > Do you mean at authoring time or execution time?
>
> Execution time, I guess.  Pretend nsd had a profiling mode
> that kept track of what API calls were executed, how many
> times, and min/avg/max time spent executing each.  What
> do you imagine would be the top 10 in the list, by count?



AOLserver 3.x can be configured to gather command stats which you can view
with the "ns_stats" command.  This works by registering a command trace which
counts commands per-thread and flushes them to a shared table occassionally.
Of course all this is undocumented but its use can be figured out by looking
at the nsd/tclstats.c code.  It does affect performance in two ways - first,
the monitoring and occasional lock around the shared table and second tracing
disables the byte code compiler in tcl 8.x for special internal commands
(e.g., if, foreach).

I removed this from 4.x because it was being used much and requred an
undocumented, non-virtual server safe API no longer available.

-Jim

Reply via email to