Home | History | Annotate | Download | only in metrics

Lines Matching refs:ThreadWatcher

7 // ThreadWatcher class which performs health check on threads that would like to
9 // all active ThreadWatcher objects.
11 // ThreadWatcher class sends ping message to the watched thread and the watched
15 // TODO(raman): ThreadWatcher can detect hung threads. If a hung thread is
28 // ThreadWatcher::StartWatching(BrowserThread::IO, "IO", sleep_time,
56 class ThreadWatcher {
59 // create ThreadWatcher object for the given thread_id, thread_name,
63 // ThreadWatcher object and activate the thread watching of the given
92 // Construct a ThreadWatcher for the given thread_id. sleep_time_ is the
95 ThreadWatcher(const BrowserThread::ID& thread_id,
99 virtual ~ThreadWatcher();
191 // We use this factory to create callback tasks for ThreadWatcher object. We
194 ScopedRunnableMethodFactory<ThreadWatcher> method_factory_;
196 DISALLOW_COPY_AND_ASSIGN(ThreadWatcher);
206 typedef std::map<BrowserThread::ID, ThreadWatcher*> RegistrationList;
210 // Destructor deletes all registered ThreadWatcher instances.
213 // Register() stores a pointer to the given ThreadWatcher in a global map.
214 static void Register(ThreadWatcher* watcher);
216 // This method returns true if the ThreadWatcher object is registerd.
256 // The Find() method can be used to test to see if a given ThreadWatcher was
258 static ThreadWatcher* Find(const BrowserThread::ID& thread_id);
261 ThreadWatcher* PreLockedFind(const BrowserThread::ID& thread_id);
268 // Map of all registered watched threads, from thread_id to ThreadWatcher.
324 // refcounting of ThreadWatcher and ThreadWatcherList classes.
325 DISABLE_RUNNABLE_METHOD_REFCOUNT(ThreadWatcher);