1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/xre/EventTracer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef XRE_EVENTTRACER_H_ 1.9 +#define XRE_EVENTTRACER_H_ 1.10 + 1.11 +namespace mozilla { 1.12 + 1.13 +// Create a thread that will fire events back at the 1.14 +// main thread to measure responsiveness. Return true 1.15 +// if the thread was created successfully. 1.16 +// aLog If the tracing results should be printed to 1.17 +// the console. 1.18 +bool InitEventTracing(bool aLog); 1.19 + 1.20 +// Signal the background thread to stop, and join it. 1.21 +// Must be called from the same thread that called InitEventTracing. 1.22 +void ShutdownEventTracing(); 1.23 + 1.24 +} // namespace mozilla 1.25 + 1.26 +#endif /* XRE_EVENTTRACER_H_ */