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");
|
BP_ZONE("BfCompiler::Compile");
|
||||||
|
|
||||||
|
uint32 frontendStartTick = GetTickCount();
|
||||||
|
|
||||||
if (mSystem->mTypeDefs.mCount == 0)
|
if (mSystem->mTypeDefs.mCount == 0)
|
||||||
{
|
{
|
||||||
// No-source bailout
|
// No-source bailout
|
||||||
|
@ -7831,6 +7833,8 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
||||||
BpLeave();
|
BpLeave();
|
||||||
BpEnter("Compile_Finish");
|
BpEnter("Compile_Finish");
|
||||||
|
|
||||||
|
int frontendTicks = (int)(GetTickCount() - frontendStartTick);
|
||||||
|
|
||||||
//TODO:!!
|
//TODO:!!
|
||||||
//mCanceling = true;
|
//mCanceling = true;
|
||||||
|
|
||||||
|
@ -8000,9 +8004,13 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
||||||
numModulesWritten, (numModulesWritten != 1) ? "s" : "",
|
numModulesWritten, (numModulesWritten != 1) ? "s" : "",
|
||||||
numObjFilesWritten, (numObjFilesWritten != 1) ? "s" : ""));
|
numObjFilesWritten, (numObjFilesWritten != 1) ? "s" : ""));
|
||||||
|
|
||||||
if ((mCeMachine != NULL) && (!mIsResolveOnly) && (mCeMachine->mRevisionExecuteTime > 0))
|
if (!mIsResolveOnly)
|
||||||
{
|
{
|
||||||
mPassInstance->OutputLine(StrFormat(":med Comptime execution time: %0.2fs", mCeMachine->mRevisionExecuteTime / 1000.0f));
|
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();
|
BpLeave();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue