Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Replace --flush-on-signal <int> with --forward-signal <int> in timem #230

Merged
merged 3 commits into from
Oct 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update outdated user messages
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic committed Oct 2, 2021
commit 00e4d7660c30ce0bf949fa6b8b63d17122b0eb98
10 changes: 5 additions & 5 deletions source/tools/timemory-timem/timem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,15 @@ main(int argc, char** argv)
for(auto itr : signal_forward())
{
CONDITIONAL_PRINT_HERE((debug() && verbose() > 0),
"timem will stop, dump it's output, and exit if signal %i "
"is sent to this process (PID: %i)",
"timem will forward signal %i to its worker "
"process if it is sent to this process (PID: %i)",
itr, (int) tim::process::get_id());
if(signal_types().count(itr) > 0)
throw std::runtime_error(TIMEMORY_JOIN(
" ", "Error! timem sampler is using signal", itr,
"to handle the sampling measurements. Flushing output on this signal "
"will cause immediate termination. Re-run timem with the"
"'--disable-sampling' option to flush output on this signal"));
"to handle the sampling measurements. Cannot forward it. "
"Re-run timem with the '--disable-sampling' option to "
"forward this signal"));
}

// set the signal handler on this process if using mpi so that we can read
Expand Down