summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-08-12 15:33:49 -0700
committerFeng Qian <fqian@google.com>2009-08-12 15:33:49 -0700
commit9ca96b30cc7b79d0b5c0540fbb5f159edea66c2b (patch)
tree7a7199b6967a82f8a496c854d73390331ba13248 /WebKit
parentda880eb405d626ac54af4b078c3a6cad76a16611 (diff)
downloadexternal_webkit-9ca96b30cc7b79d0b5c0540fbb5f159edea66c2b.zip
external_webkit-9ca96b30cc7b79d0b5c0540fbb5f159edea66c2b.tar.gz
external_webkit-9ca96b30cc7b79d0b5c0540fbb5f159edea66c2b.tar.bz2
Add a utility class QemuTracerAuto when WEBCORE_INSTRUMENTATION is on.
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/TimeCounter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKit/android/TimeCounter.h b/WebKit/android/TimeCounter.h
index c78d10f..47e681b 100644
--- a/WebKit/android/TimeCounter.h
+++ b/WebKit/android/TimeCounter.h
@@ -28,6 +28,7 @@
#ifdef ANDROID_INSTRUMENT
+#include "hardware_legacy/qemu_tracing.h"
#include <wtf/CurrentTime.h>
namespace WebCore {
@@ -95,6 +96,12 @@ private:
uint32_t m_startTime;
};
+class QemuTracerAuto {
+public:
+ QemuTracerAuto() { qemu_start_tracing(); }
+ ~QemuTracerAuto() { qemu_stop_tracing(); }
+};
+
}
#endif