On 09/05/2017 15:50, Alex Bennée wrote: >> No, it doesn't. I would make the trace event take const char * and pass >> in the string. > It would be nice to avoid having the string for non-trace builds.
It can help with gdb as well (e.g. having gdb printers that print the name of a mutex), and it shouldn't be a burden. Paolo > I was > thinking of something like: > > trace_register_human_name(void *ptr, const char *name) > > Which compiles away to nothing when tracing is not enabled. >