EventTracer.h 753 B

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