-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to change signals #22
Comments
Yes, that's doable, but we can also support signal name as well as signal number. For example, the following commands do the same thing.
The signal number of |
Yes, I'd like to implement it |
I suggested to register multiple keys like followings:
But how about registering multiple keys like this?(comma separate)
Whatever the Or We could think about another form to set environmental variable. Or We could think about to allow only one signal and sort key pair can be set. |
I almost implement this feature except to convert |
You can simply use the std::map<std::string, int> signum = {
{"SIGHUP", 1},
{"SIGINT", 2},
{"SIGQUIT", 3},
{"SIGILL", 4},
{"SIGTRAP", 5},
{"SIGABRT", 6},
{"SIGBUS", 7},
{"SIGFPE", 8},
{"SIGKILL", 9},
{"SIGUSR1", 10},
{"SIGSEGV", 11},
{"SIGUSR2", 12},
{"SIGPIPE", 13},
{"SIGALRM", 14},
{"SIGTERM", 15},
{"SIGSTKFLT", 16},
{"SIGCHLD", 17},
{"SIGCONT", 18},
{"SIGSTOP", 19},
{"SIGTSTP", 20},
{"SIGTTIN", 21},
{"SIGTTOU", 22},
{"SIGURG", 23},
{"SIGXCPU", 24},
{"SIGXFSZ", 25},
{"SIGVTALRM", 26},
{"SIGPROF", 27},
{"SIGWINCH", 28},
{"SIGIO", 29},
{"SIGPWR", 30},
{"SIGSYS", 31},
}; |
|
You are right, so I updated PR without supporting signal definition string. |
I discussed about the option format with my coworkers and followings are the suggested candidates.
|
heaptrace
useSIGUSR1
andSIGUSR2
to dump allocation status (in terms ofsize
andcount
respectively) during process running.But the signal handler will not work properly, if the target process uses one or both of the signals.
So I suggest to add option to change signals to dump allocation status.
For example, (only to show the intention not an actual option format)
The text was updated successfully, but these errors were encountered: