diff options
author | notaz | 2011-10-19 01:58:04 +0300 |
---|---|---|
committer | notaz | 2011-10-30 23:48:07 +0200 |
commit | 82ed88ebe25a0312aab83623b5a983bd96f3d830 (patch) | |
tree | 80a19f77d63f4683345464f2df8bd3f8ecbe17ec /frontend | |
parent | 054175e91a93116649ea1802790cb842516a85dc (diff) | |
download | pcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.tar.gz pcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.tar.bz2 pcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.zip |
pcnt: measure gte too
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/pcnt.h | 6 | ||||
-rw-r--r-- | frontend/plugin.c | 11 |
2 files changed, 16 insertions, 1 deletions
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 |