Commit Graph

19 Commits

Author SHA1 Message Date
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
Bartosz Taudul
cd4114f264 Add GPU name transfer macros. 2021-01-31 19:15:23 +01:00
Bartosz Taudul
dba35cfa21 Remove trailing whitespaces. 2021-01-31 18:09:23 +01:00
Andrew Depke
694202ebcf Added transient D3D12 zones, fixed callstacks 2021-01-16 02:20:59 -07:00
Bartosz Taudul
bd31e3d2d6 Send callstacks before sending events they belong to. 2020-09-29 16:40:19 +02:00
Bartosz Taudul
ddaa510553
Merge pull request #96 from hulakdar/fix-d3d12
Added define for non-profiling configurations
2020-08-16 12:13:11 +02:00
hulakdar
1ccf853b04 Added define for non-profiling configurations 2020-08-16 10:38:23 +03:00
Bartosz Taudul
8243604943 Mark SourceLocationData constexpr, not const. 2020-08-16 02:32:17 +02:00
Andrew Depke
a75781beaf Fixed missing calibration flag 2020-07-08 16:04:12 -06:00
Andrew Depke
c768068ee7 Implemented GPU synchronization protocol 2020-07-08 15:42:42 -06:00
Bartosz Taudul
1b6bc1b69a Send Vulkan GPU calibration messages. 2020-07-07 21:25:35 +02:00
Andrew Depke
501b356b2b Added semi-automatic query synchronization for N-buffered rendering 2020-06-08 22:57:27 -06:00
Andrew Depke
9473272512 Fixed queryId not looping back 2020-06-08 16:57:31 -06:00
Andrew Depke
6e03bb1c2c Reverted out-of-order execution sorting 2020-06-08 16:24:20 -06:00
Andrew Depke
c8bfa43f22 Added query data sorting to support out-of-order execution 2020-06-08 04:02:54 -06:00
Andrew Depke
c70922f3db Work on nested zones support 2020-06-07 04:55:20 -06:00
Andrew Depke
03993072c5 Added mapping range to prevent debug layer warnings 2020-06-07 01:03:43 -06:00
Andrew Depke
3282a8d27c Added server support for D3D12 contexts 2020-06-07 00:40:08 -06:00
Andrew Depke
4be5e0bfa1 Initial Direct3D 12 profiling implementation 2020-06-07 00:25:43 -06:00