- added some profiling code to the VM.

This commit is contained in:
Christoph Oelckers 2016-12-31 17:59:48 +01:00
commit 28d79cc2b0
3 changed files with 33 additions and 1 deletions

View file

@ -39,6 +39,10 @@
#include "r_state.h"
#include "textures/textures.h"
#include "math/cmath.h"
#include "stats.h"
extern cycle_t VMCycles[10];
extern int VMCalls[10];
// This must be a separate function because the VC compiler would otherwise allocate memory on the stack for every separate instance of the exception object that may get thrown.
void ThrowAbortException(EVMAbortException reason, const char *moreinfo, ...);