Commit e2fc04b5 authored by Micha Müller's avatar Micha Müller
Browse files

Caliper: slightly improve finish-callbacks

parent 58a8c85e
......@@ -794,6 +794,7 @@ private:
}
void finish_cb(Caliper* c, Channel* chn) {
initialized = false;
stopSUS();
if (shm != NULL) {
......@@ -810,6 +811,9 @@ private:
Log(1).stream() << chn->name() << ": DcdbPusher: "
<< snapshots_processed << " snapshots processed of which "
<< snapshots_failed << " failed." << std::endl;
snapshots_processed = 0;
snapshots_failed = 0;
}
void create_thread_cb(Caliper* c, Channel* chn) {
......@@ -817,7 +821,7 @@ private:
}
void release_thread_cb(Caliper* c, Channel* chn) {
if (!flush_buf()) {
if (shm == NULL || !flush_buf()) {
snapshots_failed += shm_buf_idx;
}
}
......
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