toolkit/xre/EventTracer.h
author Sriram Ramasubramanian <sriram@mozilla.com>
Wed, 05 Sep 2012 14:53:54 -0700
changeset 104344 d89a71a8f5aead66d115b573aab0c8a47129ff12
parent 94484 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 126398 43e3534fcf8683d30722bb08c2929d01747b5447
permissions -rw-r--r--
Bug 785246: Make custom button inherit ShapedButton. [r=mfinkle]

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef XRE_EVENTTRACER_H_
#define XRE_EVENTTRACER_H_

namespace mozilla {

// Create a thread that will fire events back at the
// main thread to measure responsiveness. Return true
// if the thread was created successfully.
bool InitEventTracing();

// Signal the background thread to stop, and join it.
// Must be called from the same thread that called InitEventTracing.
void ShutdownEventTracing();

}  // namespace mozilla

#endif /* XRE_EVENTTRACER_H_ */