Skip to content

Commit

Permalink
- Bump MSL revision
Browse files Browse the repository at this point in the history
- Fix measureTime count graphs


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15260 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 21, 2013
1 parent 11dea7d commit 64517ee
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions SimulationRuntime/c/simulation/modelinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,20 @@ static void printPlotCommand(FILE *plt, const char *plotFormat, const char *titl
} else {
fprintf(plt, "set yrange [*:*]\n");
}
/* time */
fprintf(plt, format, prefix, numFnsAndBlocks, numFnsAndBlocks, 3+i, 3+i);
fprintf(plt, "set nolog xy\n");
/* count */
if(i >= 0) {
fprintf(plt, "set yrange [%g:%g]\n", ymin, ymax);
fprintf(plt, "unset ytics\n");
if (nmin == nmax) {
fprintf(plt, "set yrange [%g:%g]\n", ymin, ymax);
} else {
fprintf(plt, "set yrange [*:*]\n");
}
fprintf(plt, "set output \"%s_prof.%s%d_count.thumb.png\"\n", prefix, idPrefix, id);
fprintf(plt, formatCount, prefix, numFnsAndBlocks, numFnsAndBlocks, i+1);
fprintf(plt, "set ytics\n");
}

/* SVG */
Expand All @@ -112,9 +120,14 @@ static void printPlotCommand(FILE *plt, const char *plotFormat, const char *titl
fprintf(plt, "set yrange [*:*]\n");
}
fprintf(plt, format, prefix, numFnsAndBlocks, numFnsAndBlocks, 3+i, 3+i);
/* count */
fprintf(plt, "set nolog xy\n");
if(i >= 0) {
fprintf(plt, "set yrange [%g:%g]\n", ymin, ymax);
if (nmin == nmax) {
fprintf(plt, "set yrange [%g:%g]\n", ymin, ymax);
} else {
fprintf(plt, "set yrange [*:*]\n");
}
fprintf(plt, "set xlabel \"Global step number\"\n");
fprintf(plt, "set ylabel \"Execution count\"\n");
fprintf(plt, "set output \"%s_prof.%s%d_count.%s\"\n", prefix, idPrefix, id, plotFormat);
Expand Down

0 comments on commit 64517ee

Please sign in to comment.