Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e2dbad2

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
more execstat: at the end of frontend and for checkmodel
Belonging to [master]: - #2891
1 parent 5e72f06 commit e2dbad2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Compiler/FrontEnd/CheckModel.mo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected import ComponentReference;
4545
protected import DAEDump;
4646
protected import DAEUtil;
4747
protected import Debug;
48+
protected import ExecStat;
4849
protected import Expression;
4950
protected import Flags;
5051
protected import HashSet;
@@ -63,10 +64,12 @@ protected
6364
list<DAE.Element> eqns, lst;
6465
HashSet.HashSet hs;
6566
algorithm
67+
ExecStat.execStat("CheckModel - start counting");
6668
DAE.DAE(lst) := inDAELst;
6769
hs := HashSet.emptyHashSet();
6870
(varSize, eqnSize, eqns, hs) := List.fold(lst, countVarEqnSize, (0, 0, {}, hs));
6971
simpleEqnSize := countSimpleEqnSize(eqns, 0, hs);
72+
ExecStat.execStat("CheckModel - end counting");
7073
end checkModel;
7174

7275
protected type CountVarEqnFoldArg =

Compiler/Script/CevalScriptBackend.mo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,7 @@ algorithm
30423042
if Flags.isSet(Flags.GC_PROF) then
30433043
print(GC.profStatsStr(GC.getProfStats(), head="GC stats after front-end:") + "\n");
30443044
end if;
3045+
ExecStat.execStat("FrontEnd - DAE generated");
30453046
odae := SOME(dae);
30463047
else
30473048
// Return odae=NONE(); needed to update cache and symbol table if we fail

0 commit comments

Comments
 (0)