Skip to content

Commit

Permalink
- Adding some more function calls to the profiling
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11491 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 22, 2012
1 parent fc93863 commit ac140bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/susan_codegen/SimCode/CodegenC.tpl
Expand Up @@ -5496,14 +5496,14 @@ template daeExpCall(Exp call, Context context, Text &preExp /*BUFP*/,
let retVar = match attr.ty
case T_NORETCALL(__) then ""
else tempDecl(retType, &varDecls)
let &preExp += if not attr.builtin then match context case SIMULATION(__) then
let &preExp += if not attr.builtin then match context case FUNCTION_CONTEXT(__) then "" else
<<
<%\n%>#ifdef _OMC_MEASURE_TIME
SIM_PROF_TICK_FN(<%funName%>_index);
#endif<%\n%>
>>
let &preExp += '<%if retVar then '<%retVar%> = '%><%daeExpCallBuiltinPrefix(attr.builtin)%><%funName%>(<%argStr%>);<%\n%>'
let &preExp += if not attr.builtin then match context case SIMULATION(__) then
let &preExp += if not attr.builtin then match context case FUNCTION_CONTEXT(__) then "" else
<<
<%\n%>#ifdef _OMC_MEASURE_TIME
SIM_PROF_ACC_FN(<%funName%>_index);
Expand Down

0 comments on commit ac140bd

Please sign in to comment.