michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef XRE_EVENTTRACER_H_ michael@0: #define XRE_EVENTTRACER_H_ michael@0: michael@0: namespace mozilla { michael@0: michael@0: // Create a thread that will fire events back at the michael@0: // main thread to measure responsiveness. Return true michael@0: // if the thread was created successfully. michael@0: // aLog If the tracing results should be printed to michael@0: // the console. michael@0: bool InitEventTracing(bool aLog); michael@0: michael@0: // Signal the background thread to stop, and join it. michael@0: // Must be called from the same thread that called InitEventTracing. michael@0: void ShutdownEventTracing(); michael@0: michael@0: } // namespace mozilla michael@0: michael@0: #endif /* XRE_EVENTTRACER_H_ */