[omniORB] Timing stats

Olivier Chedru oChedru at infovista.com
Tue Jul 4 18:42:05 BST 2006


Hi Duncan,

You are right; omni_thread::allocate_key () and the related functions
will do the job.

Thanks a lot!
Olivier.

-----Original Message-----
From: Duncan Grisby [mailto:duncan at grisby.org] 
Sent: Tuesday, July 04, 2006 5:15 PM
To: Olivier Chedru
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Timing stats 

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