tracy/client
Bartosz Taudul b0fc0d5dcc
Check if rpmalloc has to be initialized before each operation.
The C++11 spec states in [basic.stc.thread] thread storage duration:

2. A variable with thread storage duration shall be initialized before its
   first odr-use (3.2) and, if constructed, shall be destroyed on thread exit.

Previously Tracy relied on the TLS data being initialized:
- During thread creation (MSVC).
- Or during first use in a thread, but the initialization was performed for
  the whole TLS block.

It seems that new compilers are more granular with how they perform the
initialization, hence rpmalloc init has to be checked before each allocation,
as it cannot be "folded" into, for example, initialization of the profiler
itself.
2021-05-31 02:31:42 +02:00
..
tracy_concurrentqueue.h Remove trailing whitespace. 2020-10-29 23:06:28 +01:00
tracy_rpmalloc.cpp Fix rpmalloc on ios. 2021-05-30 13:38:29 +02:00
tracy_rpmalloc.hpp Mark rprealloc as a part of Tracy API. 2020-12-27 14:11:45 +01:00
TracyArmCpuTable.hpp Add new apple devices. 2020-07-31 02:42:22 +02:00
TracyCallstack.cpp Allow disabling inline resolution on windows. 2021-05-21 22:27:35 +02:00
TracyCallstack.h Use libbacktrace on BSD. 2019-11-21 20:41:57 +01:00
TracyCallstack.hpp Fix integer type warnings 2020-11-19 16:36:01 +01:00
TracyDxt1.cpp Mask out alpha channel on SSE and AVX2 paths. 2020-07-20 13:58:35 +02:00
TracyDxt1.hpp Experimental DXT1 compressor. 2019-06-27 19:14:51 +02:00
TracyFastVector.hpp Fix integer type warnings 2020-11-19 16:36:01 +01:00
TracyLock.hpp Order of lock events is now always well-defined. 2020-07-26 13:54:40 +02:00
TracyProfiler.cpp Check if rpmalloc has to be initialized before each operation. 2021-05-31 02:31:42 +02:00
TracyProfiler.hpp Check if rpmalloc has to be initialized before each operation. 2021-05-31 02:31:42 +02:00
TracyRingBuffer.hpp No need to store two same pointers. 2020-08-15 13:40:36 +02:00
TracyScoped.hpp Add IsActive accessor to ScopedZone. 2021-02-12 20:30:43 -06:00
TracySysTime.cpp only write SysTime::used if fscanf succeeds 2020-06-03 19:54:49 -07:00
TracySysTime.hpp Implement reading sys time on BSD. 2019-11-21 20:41:57 +01:00
TracySysTrace.cpp Allow control of sampling frequency. 2021-05-11 18:31:20 +02:00
TracySysTrace.hpp Store sampling period. 2020-02-25 23:08:52 +01:00
TracySysTracePayload.hpp Fix shutdown with TRACY_NO_EXIT=1 on Android. (#134) 2020-11-26 20:33:54 +01:00
TracyThread.hpp Add missing rpmalloc include. 2020-07-19 13:04:51 +02:00