[omniORB] Timing stats

Duncan Grisby duncan at grisby.org
Tue Jul 4 17:14:44 BST 2006


On Tuesday 4 July, "Olivier Chedru" wrote:

> In my server application, I would like to gather timing stats (basically
> user and kernel thread times) for all omniORB threads.
> 
> I can use the createThread interceptor to add a new thread to the list
> of worker threads being monitored but, unless I missed something, there
> is no available interceptor for thread stop.

You can allocate a per-thread storage key, and register an per-thread
object in your interceptor. When the thread exits, its per-thread
storage objects are deleted, so you can do whatever cleanup you need in
your object's destructor.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list