Skip to content

Commit

Permalink
initialize profiler only if init is called and it is not in preload mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Oct 6, 2023
1 parent a85a22d commit 18721c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlio_profiler/dlio_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void dlio_profiler_init(void) {
char *init_type = getenv(DLIO_PROFILER_INIT);
if (!is_init() && init_type != nullptr && strcmp(init_type, "PRELOAD") == 0) {
dlio_profiler::Singleton<dlio_profiler::DLIOProfiler>::get_instance(true);
DLIO_PROFILER_LOGINFO("Running initialize within constructor", "");
DLIO_PROFILER_LOGINFO("Running initialize within constructor %d", getpid());
set_init(true);
}

Expand Down

0 comments on commit 18721c4

Please sign in to comment.