Commit df1e0551 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Time the check-point file reading operations and add that to the runtime analysis script

parent 2a9c96e0
......@@ -160,6 +160,8 @@ void restart_write(struct engine *e, const char *filename) {
*/
void restart_read(struct engine *e, const char *filename) {
const ticks tic = getticks();
FILE *stream = fopen(filename, "r");
if (stream == NULL)
error("Failed to open restart file: %s (%s)", filename, strerror(errno));
......@@ -190,6 +192,10 @@ void restart_read(struct engine *e, const char *filename) {
engine_struct_restore(e, stream);
fclose(stream);
if (e->verbose)
message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
clocks_getunit());
}
/**
......
......@@ -97,9 +97,10 @@ labels = [
["engine_print_task_counts:", 0],
["engine_drift_top_multipoles:", 0],
["Communicating rebuild flag", 0],
["task_dump_all", 0],
["task_dump_stats", 0],
["task_dump_active", 0],
["task_dump_all:", 0],
["task_dump_stats:", 0],
["task_dump_active:", 0],
["restart_read:", 0],
["engine_split:", 0],
["space_init", 0],
["engine_init", 0],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment