mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Add frontend timing
This commit is contained in:
parent
cd3052e418
commit
3ec94eec14
1 changed files with 11 additions and 3 deletions
|
@ -7020,6 +7020,8 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
|||
{
|
||||
BP_ZONE("BfCompiler::Compile");
|
||||
|
||||
uint32 frontendStartTick = GetTickCount();
|
||||
|
||||
if (mSystem->mTypeDefs.mCount == 0)
|
||||
{
|
||||
// No-source bailout
|
||||
|
@ -7831,6 +7833,8 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
|||
BpLeave();
|
||||
BpEnter("Compile_Finish");
|
||||
|
||||
int frontendTicks = (int)(GetTickCount() - frontendStartTick);
|
||||
|
||||
//TODO:!!
|
||||
//mCanceling = true;
|
||||
|
||||
|
@ -8000,10 +8004,14 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
|||
numModulesWritten, (numModulesWritten != 1) ? "s" : "",
|
||||
numObjFilesWritten, (numObjFilesWritten != 1) ? "s" : ""));
|
||||
|
||||
if ((mCeMachine != NULL) && (!mIsResolveOnly) && (mCeMachine->mRevisionExecuteTime > 0))
|
||||
if (!mIsResolveOnly)
|
||||
{
|
||||
mPassInstance->OutputLine(StrFormat(":med Frontend time: %0.2fs", frontendTicks / 1000.0f));
|
||||
if ((mCeMachine != NULL) && (mCeMachine->mRevisionExecuteTime > 0))
|
||||
{
|
||||
mPassInstance->OutputLine(StrFormat(":med Comptime execution time: %0.2fs", mCeMachine->mRevisionExecuteTime / 1000.0f));
|
||||
}
|
||||
}
|
||||
|
||||
BpLeave();
|
||||
mPassInstance->WriteErrorSummary();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue