From 82ed88ebe25a0312aab83623b5a983bd96f3d830 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 19 Oct 2011 01:58:04 +0300 Subject: pcnt: measure gte too --- frontend/pcnt.h | 6 +++++- frontend/plugin.c | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/pcnt.h b/frontend/pcnt.h index 3969aa4..0213ca1 100644 --- a/frontend/pcnt.h +++ b/frontend/pcnt.h @@ -4,13 +4,14 @@ enum pcounters { PCNT_GPU, PCNT_SPU, PCNT_BLIT, + PCNT_GTE, PCNT_TEST, PCNT_CNT }; #ifdef PCNT -static const char *pcnt_names[PCNT_CNT] = { "", "gpu", "spu", "blit", "test" }; +static const char *pcnt_names[PCNT_CNT] = { "", "gpu", "spu", "blit", "gte", "test" }; #define PCNT_FRAMES 10 @@ -96,6 +97,9 @@ static inline void pcnt_init(void) #endif } +void pcnt_gte_start(int op); +void pcnt_gte_end(int op); + #else #define pcnt_start(id) diff --git a/frontend/plugin.c b/frontend/plugin.c index 2492f4a..e741a1a 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -292,4 +292,15 @@ void pcnt_hook_plugins(void) hook_it(SPU_playCDDAchannel); } +// hooked into recompiler +void pcnt_gte_start(int op) +{ + pcnt_start(PCNT_GTE); +} + +void pcnt_gte_end(int op) +{ + pcnt_end(PCNT_GTE); +} + #endif -- cgit v1.2.3