Skip to content

Commit

Permalink
more execstat: at the end of frontend and for checkmodel
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2891
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Jan 23, 2019
1 parent 5e72f06 commit e2dbad2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/FrontEnd/CheckModel.mo
Expand Up @@ -45,6 +45,7 @@ protected import ComponentReference;
protected import DAEDump;
protected import DAEUtil;
protected import Debug;
protected import ExecStat;
protected import Expression;
protected import Flags;
protected import HashSet;
Expand All @@ -63,10 +64,12 @@ protected
list<DAE.Element> eqns, lst;
HashSet.HashSet hs;
algorithm
ExecStat.execStat("CheckModel - start counting");
DAE.DAE(lst) := inDAELst;
hs := HashSet.emptyHashSet();
(varSize, eqnSize, eqns, hs) := List.fold(lst, countVarEqnSize, (0, 0, {}, hs));
simpleEqnSize := countSimpleEqnSize(eqns, 0, hs);
ExecStat.execStat("CheckModel - end counting");
end checkModel;

protected type CountVarEqnFoldArg =
Expand Down
1 change: 1 addition & 0 deletions Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3042,6 +3042,7 @@ algorithm
if Flags.isSet(Flags.GC_PROF) then
print(GC.profStatsStr(GC.getProfStats(), head="GC stats after front-end:") + "\n");
end if;
ExecStat.execStat("FrontEnd - DAE generated");
odae := SOME(dae);
else
// Return odae=NONE(); needed to update cache and symbol table if we fail
Expand Down

0 comments on commit e2dbad2

Please sign in to comment.