- add -dumpjit command line parameter that dumps the JIT log for all functions to dumpjit.txt
This commit is contained in:
parent
452c6fd158
commit
01825231ec
5 changed files with 79 additions and 10 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "vmbuilder.h"
|
||||
#include "codegen.h"
|
||||
#include "m_argv.h"
|
||||
#include "scripting/vm/jit.h"
|
||||
|
||||
struct VMRemap
|
||||
{
|
||||
|
|
@ -939,7 +940,22 @@ void FFunctionBuildList::Build()
|
|||
fclose(dump);
|
||||
}
|
||||
FScriptPosition::StrictErrors = false;
|
||||
if (Args->CheckParm("-dumpjit")) DumpJit();
|
||||
mItems.Clear();
|
||||
mItems.ShrinkToFit();
|
||||
FxAlloc.FreeAllBlocks();
|
||||
}
|
||||
}
|
||||
|
||||
void FFunctionBuildList::DumpJit()
|
||||
{
|
||||
FILE *dump = fopen("dumpjit.txt", "w");
|
||||
if (dump == nullptr)
|
||||
return;
|
||||
|
||||
for (auto &item : mItems)
|
||||
{
|
||||
JitDumpLog(dump, item.Function);
|
||||
}
|
||||
|
||||
fclose(dump);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue