continues ...
else { set pstat ... nsv_set pagecount $page 0 }
nsv_incr pagecount $page nsv_set pagestat $page $pstat
This doesn't remove the race condition completely but makes if much finer time slot in which to fail. Remember that the profiling code is generally meant to be a ballpark figure to help spot rough spots and spot trends and does put a minor load on the server.
As a side note a site of mine which has the profiling turned completely on with Verbose on all db queries but is not touching the db for most pages but still doing user authentication, ad serving, membership checking, object loading, customization of user output, most pages once in cache will profile at about 1000 microseconds including the profile code so performance for that profiling isnt too bad ...
Best Regards, Carl
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/