aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-10-09 10:47:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-10 09:54:36 +0200
commit14e0e0c000234f67613ea65e3fea1e9c3445844a (patch)
tree3a2cf837da6ef49b5704d7459b30c1bfe4251e6e /src/qml/jsruntime/qv4runtime_p.h
parentccfa06e7566f1c113a3c5c31dab3c5aeb7a4985d (diff)
V4 runtime: add some more counters.
Change-Id: I872f259a9fd4580e8faeae664f4d34f59a785c4e Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime_p.h')
-rw-r--r--src/qml/jsruntime/qv4runtime_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4runtime_p.h b/src/qml/jsruntime/qv4runtime_p.h
index 2fb641c994..4ede7ae991 100644
--- a/src/qml/jsruntime/qv4runtime_p.h
+++ b/src/qml/jsruntime/qv4runtime_p.h
@@ -72,6 +72,7 @@ public:
static RuntimeCounters *instance;
+ void count(const char *func);
void count(const char *func, uint tag);
void count(const char *func, uint tag1, uint tag2);
@@ -80,9 +81,11 @@ private:
Data *d;
};
+# define TRACE0() RuntimeCounters::instance->count(Q_FUNC_INFO);
# define TRACE1(x) RuntimeCounters::instance->count(Q_FUNC_INFO, x->type());
# define TRACE2(x, y) RuntimeCounters::instance->count(Q_FUNC_INFO, x->type(), y->type());
#else
+# define TRACE0()
# define TRACE1(x)
# define TRACE2(x, y)
#endif // QV4_COUNT_RUNTIME_FUNCTIONS