Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 48791d3

Browse files
author
Omar Awile
authored
Merge pull request #217 from BlueBrain/pr/fix_instrumentor_phase_end
use phase name to close the profiling phase
2 parents 03740cc + 0d19671 commit 48791d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

coreneuron/nrniv/profiler_interface.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,12 @@ using InstrumentorImpl = detail::Instrumentor<
279279

280280
namespace Instrumentor {
281281
struct phase {
282-
phase(const char* name) {
283-
detail::InstrumentorImpl::phase_begin(name);
282+
const char * phase_name;
283+
phase(const char* name) : phase_name(name) {
284+
detail::InstrumentorImpl::phase_begin(phase_name);
284285
}
285286
~phase() {
286-
detail::InstrumentorImpl::phase_end("");
287+
detail::InstrumentorImpl::phase_end(phase_name);
287288
}
288289
};
289290

0 commit comments

Comments
 (0)