diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-04-09 17:16:31 -0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-06 21:50:28 +0100 |
commit | 051f68c2d3a069543dce4d560facff6aa22284bd (patch) | |
tree | 46f02c108b63c88fe871f5f1be9e549dfa2e9e4f /src/testlib/qbenchmarkperfevents_p.h | |
parent | 93fe3895cfad75f095b8b1d48cce48ba17600b4e (diff) | |
download | qtbase-051f68c2d3a069543dce4d560facff6aa22284bd.tar.gz |
Add support for more performance counters in QBenchlib
Added support for most hardware and software counters available on
Linux 3.3. The cache-based counters are missing because they need
special handling.
Also added an option that lists available counters. Note that the list
is of counters the library knows about, not the counters that the
hardware can measure.
Change-Id: I9f6fb09b5460bf4ac6082081611c1d6ff806a3fa
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src/testlib/qbenchmarkperfevents_p.h')
-rw-r--r-- | src/testlib/qbenchmarkperfevents_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testlib/qbenchmarkperfevents_p.h b/src/testlib/qbenchmarkperfevents_p.h index 74966e1699..f73d140300 100644 --- a/src/testlib/qbenchmarkperfevents_p.h +++ b/src/testlib/qbenchmarkperfevents_p.h @@ -74,6 +74,9 @@ public: virtual QTest::QBenchmarkMetric metricType(); static bool isAvailable(); + static QTest::QBenchmarkMetric metricForEvent(quint32 type, quint64 event_id); + static void setCounter(const char *name); + static void listCounters(); private: int fd; |