Re: proposal for ICU tracing
Andy Heninger <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
Carl W. Brown wrote:
> There is a solution and that is to use thread local storage. I have
[Suggests the use of thread local storage to allow tracing of the
activity of individual threads in ICU]
I can certainly see how this would be useful for multi-threaded
environments. Without some threading help, traces from a multithreaded
app would show overlapped ICU usage from the various threads, which
could be quite confusing.
I am, however, reluctant to add a dependency on thread local storage to
the core tracing code. I would also want to verify that the time to
access a TLS tracing flag was not notably different from the time to
access a simple global tracing flag.
The good news is that the global tracing functions are user/application
code, and could easily filter based on thread if that is needed.
-- Andy Heninger
[email protected]