Skip to content

Commit

Permalink
Add the "backup" profiling event.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Oct 8, 2015
1 parent 319b6f0 commit 05843bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/base/iMIO.cc
Expand Up @@ -790,6 +790,9 @@ void IceModel::write_backup() {
return;
}

const Profiling &profiling = m_ctx->profiling();
profiling.begin("backup");

last_backup_time = wall_clock_hours;

// create a history string:
Expand Down Expand Up @@ -824,6 +827,8 @@ void IceModel::write_backup() {

// Also flush time-series:
flush_timeseries();

profiling.end("backup");
}


Expand Down

0 comments on commit 05843bb

Please sign in to comment.