Commit Graph

419 Commits

Author SHA1 Message Date
Bartosz Taudul
697ec4372e
Set combine samples flag on win32. 2021-06-15 01:32:18 +02:00
Bartosz Taudul
06dcdd342f
Combine flags in welcome message. 2021-06-15 01:26:50 +02:00
Bartosz Taudul
004681b02b
Merge remote-tracking branch 'origin/master' into hw 2021-06-14 23:54:34 +02:00
Bartosz Taudul
d07db80b44
Fix rpmalloc init for shared libraries. 2021-06-13 12:15:36 +02:00
Bartosz Taudul
5b7cd06840
Don't init rpmalloc, if we know it has been done already. 2021-06-10 01:48:11 +02:00
Bartosz Taudul
7889d33044
Add fast versions of tracy_malloc/tracy_free. 2021-06-10 01:18:03 +02:00
Bartosz Taudul
bb0f5025b2
Also ignore "atomic" header. 2021-06-09 02:14:01 +02:00
Bartosz Taudul
9c2ea8a71f
Specify minimum length of subframe skip in one place. 2021-06-09 02:13:00 +02:00
Bartosz Taudul
854613f210
Ignore atomic_base.h implementation. 2021-06-09 02:05:44 +02:00
Bartosz Taudul
b281ce9c0e
Add missing include. 2021-06-04 15:01:50 +02:00
Bartosz Taudul
2765be92fb
Sample time for hardware samples. 2021-06-04 12:50:55 +02:00
Bartosz Taudul
b7c5939bb8
Merge remote-tracking branch 'origin/master' into hw 2021-06-02 01:12:28 +02:00
Bartosz Taudul
3da84d1579
Hide rpmalloc init behind thread local boolean. 2021-05-31 22:38:22 +02:00
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
94ec6a0d9d
Move TracyYield.hpp to common. 2021-05-31 02:19:35 +02:00
Bartosz Taudul
f8ccd8c40d
Move TracyStackFrames to common. 2021-05-23 23:51:56 +02:00
Bartosz Taudul
5f3d1c0faf
Sample cache and branch stats. 2021-05-20 02:15:23 +02:00
Bartosz Taudul
2e38e70049
Reduce hardware sampling perdiod. Don't sample time. 2021-05-19 23:21:21 +02:00
Bartosz Taudul
101cdd9b4b
Don't send thread id for hw samples. 2021-05-19 22:52:13 +02:00
Bartosz Taudul
7794443453
Collect CPU cycles and instruction retirement events. 2021-05-19 21:09:55 +02:00
Hugo Amiard
d44d7db489 Add D3D11 Gpu Context/Zone 2021-05-01 14:55:45 -07:00
Bartosz Taudul
05894f6f14
Shuffle code around to avoid error C2712. 2021-04-29 19:10:30 +02:00
Bartosz Taudul
0476e851ff
Force inline LZ4_NbCommonBytes(). 2021-04-18 14:42:35 +02:00
joshuakr
eac23cead2 PR feedback 2021-04-09 15:33:01 -07:00
Bartosz Taudul
ad2062fb40 Last-resort source code transfer from client to server. 2021-02-04 00:45:00 +01:00
Bartosz Taudul
f97223e394 Rename ParamPingback to more generic AckServerQueryNoop. 2021-02-04 00:03:58 +01:00
Bartosz Taudul
7f5810dfd6 Add GPU context name transfer to the protocol. 2021-01-31 18:46:42 +01:00
Bartosz Taudul
c92974d920 Send executable mtime in welcome message. 2021-01-31 17:45:31 +01:00
Bartosz Taudul
e3ae2c077f Arm macos uses arm64 as machine name. 2021-01-26 22:54:54 +01:00
Bartosz Taudul
9ae508218e Strip release binaries built with clang. 2021-01-26 22:52:08 +01:00
Bartosz Taudul
c8ea47782c ARM clang doesn't support -march=native. 2021-01-26 19:46:39 +01:00
Bartosz Taudul
62d6f4127d Don't pass -s parameter to clang. 2021-01-26 19:39:24 +01:00
Bartosz Taudul
d4c0d4fbb7 Rename CallstackMemory to CallstackSerial. 2021-01-15 20:49:39 +01:00
Bartosz Taudul
5a8d30ddc3 Add transient OpenGL zones. 2021-01-15 20:13:09 +01:00
Bartosz Taudul
025ab1626b Bind only on IPv4, if restricted to localhost.
This is needed, as disabling the IPV6_V6ONLY socket option doesn't work for
localhost listeners on Windows.
2020-12-16 15:33:05 +01:00
Bartosz Taudul
2049332211 Broadcast to localhost if listening only on localhost. 2020-12-16 15:27:00 +01:00
Bartosz Taudul
6f83044cf6 Broadcast to the given address. 2020-12-16 15:24:20 +01:00
Ben Vanik
7dfdad2e02 Adding ZoneColor to set a dynamic color override to an existing zone. 2020-11-27 20:12:24 +01:00
Bartosz Taudul
278b58728c Wrap lz4 in tracy namespace, etc. 2020-11-16 18:13:19 +01:00
Bartosz Taudul
bae4c5f8df Update lz4 to 1.9.3, without tracy-specific changes. 2020-11-16 17:46:11 +01:00
Bartosz Taudul
01e5c289b7 Add tracy_realloc() function. 2020-10-22 22:24:32 +02:00
Bartosz Taudul
b6724bec3a Ports are uint16_t. 2020-10-02 18:51:54 +02:00
Bartosz Taudul
bd31e3d2d6 Send callstacks before sending events they belong to. 2020-09-29 16:40:19 +02:00
Bartosz Taudul
4db092437c Add support for custom allocator tracking to client. 2020-09-24 01:31:23 +02:00
Bartosz Taudul
c1a5ef4108 Reduce broadcast message size by 4 bytes.
Note that this is compatible with previous clients, which will never get
values 0 or 1 in the 32-bit integer that is now split between
broadcastVersion and listenPort.
2020-09-20 22:23:46 +02:00
Bartosz Taudul
5c826c2723 Send signed active time in broadcast message.
This allows special treatment of negative values.
2020-09-20 22:15:10 +02:00
Bartosz Taudul
0814812e9b Don't block when polling for broadcast messages. 2020-09-20 22:06:28 +02:00
Bartosz Taudul
e2d69e7981 Implement reading unknown lengths of data from socket. 2020-09-10 21:39:58 +02:00
Bartosz Taudul
72ce3ccf15 Allow issuing blocking connect calls on sockets. 2020-09-10 20:56:24 +02:00
Bartosz Taudul
813e45198d Cygwin uses BSD sockets API. 2020-09-06 14:11:29 +02:00