summaryrefslogtreecommitdiffstats
path: root/WebKit/android/TimeCounter.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebKit/android/TimeCounter.h
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebKit/android/TimeCounter.h')
-rw-r--r--WebKit/android/TimeCounter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/android/TimeCounter.h b/WebKit/android/TimeCounter.h
index d1b2dff..f15deef 100644
--- a/WebKit/android/TimeCounter.h
+++ b/WebKit/android/TimeCounter.h
@@ -28,7 +28,7 @@
#ifdef ANDROID_INSTRUMENT
-#include "SystemTime.h"
+#include <wtf/CurrentTime.h>
namespace WebCore {
@@ -61,7 +61,7 @@ public:
static void record(enum Type type, const char* functionName);
static void recordNoCounter(enum Type type, const char* functionName);
- static void report(const WebCore::KURL& , int live, int dead);
+ static void report(const WebCore::KURL& , int live, int dead, size_t arenaSize);
static void reportNow();
static void reset();
static void start(enum Type type);
@@ -80,9 +80,9 @@ private:
class TimeCounterAuto {
public:
TimeCounterAuto(TimeCounter::Type type) :
- m_type(type), m_startTime(WebCore::get_thread_msec()) {}
+ m_type(type), m_startTime(WTF::get_thread_msec()) {}
~TimeCounterAuto() {
- uint32_t time = WebCore::get_thread_msec();
+ uint32_t time = WTF::get_thread_msec();
TimeCounter::sEndWebCoreThreadTime = time;
TimeCounter::sTotalTimeUsed[m_type] += time - m_startTime;
TimeCounter::sCounter[m_type]++;