Bartosz Taudul
9e9c7db5b1
Send sampled call stacks.
2020-02-22 13:42:09 +01:00
Bartosz Taudul
0d2e7f72a7
Move GetThreadHandleImpl() from header to source file.
...
This removes dependency on unistd.h header (required for syscall() on
linux), which includes a definition of getopt(), which may conflict with
a custom getopt implementation (for example, one that does work on
windows).
2020-02-11 14:40:49 +01:00
Bartosz Taudul
99f2734d28
Remove stack dependency.
2020-02-09 17:22:41 +01:00
Bartosz Taudul
78c2f68649
Force inline LZ4 read/write functions.
2020-02-09 17:22:41 +01:00
Bartosz Taudul
99613291fb
Restore original 16 KB LZ4 hash table size.
2020-02-08 18:12:44 +01:00
Bartosz Taudul
aa94df0845
Replace rpmalloc_thread_initialize with InitRPMallocThread().
2020-01-25 17:16:08 +01:00
Bartosz Taudul
a90004b983
Move Set/GetThreadName() to Tracy API.
2020-01-25 16:36:58 +01:00
Bartosz Taudul
6f31eb2a9d
Disable MSVC idiocy.
2020-01-20 22:49:03 +01:00
Bartosz Taudul
77a6039e54
Force inline small functions in LZ4.
2020-01-17 01:08:06 +01:00
Bartosz Taudul
cb501298b5
Make QueueDataSize constexpr.
2020-01-14 19:42:11 +01:00
Bartosz Taudul
65d146ddca
Allow checking if socket is valid.
2019-12-19 17:23:40 +01:00
Bartosz Taudul
4eaa3d90dd
Thread ids are no longer pthread_t.
2019-12-13 15:57:08 +01:00
Bartosz Taudul
d4f4b73d56
Move socket buffer size from header to source file.
2019-12-08 23:14:48 +01:00
Bartosz Taudul
712403e9fd
Transfer, display, save CPU topology data.
2019-11-29 22:41:41 +01:00
Bartosz Taudul
4551553eb4
Implement setting client parameters from server.
2019-11-25 23:59:48 +01:00
Bartosz Taudul
3e4913dc8a
Reuse socket address also on BSD.
2019-11-21 20:41:57 +01:00
Bartosz Taudul
3c4a7463b8
Retrieve proper thread ids on BSD.
2019-11-21 02:29:17 +01:00
Bartosz Taudul
3282360382
Bind on both IPv6 and IPv4 on BSD.
2019-11-21 02:03:32 +01:00
Bartosz Taudul
a9cd5b331f
BSD needs netinet/in.h for struct sockaddr_in and friends.
2019-11-21 01:28:48 +01:00
Bartosz Taudul
31e1558467
Use standard includes.
2019-11-15 20:17:55 +01:00
Bartosz Taudul
8286b0b72f
Plumbing for message call stacks.
2019-11-14 23:40:41 +01:00
Bartosz Taudul
0f6101b19a
Fix mingw/cygwin thread name setter/getter.
2019-11-07 18:58:08 +01:00
Bartosz Taudul
3abdd7cdaf
Remove LZ4 include from TracyProtocol.hpp.
2019-11-06 01:30:20 +01:00
Bartosz Taudul
6015c964a9
Enable LZ4 fast decompression loop on MSVC.
2019-11-05 22:00:13 +01:00
Bartosz Taudul
6bbf273581
Partial header inclusion cleanup.
2019-11-05 20:09:40 +01:00
Bartosz Taudul
907574e637
Allow remote plot configuration.
2019-11-05 17:45:19 +01:00
Bartosz Taudul
106411e1f6
Add missing freeaddrinfo().
2019-10-27 13:39:01 +01:00
Bartosz Taudul
0f2503d334
Send time deltas in GPU time events.
2019-10-25 19:52:01 +02:00
Bartosz Taudul
8fa5188176
Send delta times for context switches.
2019-10-25 19:13:11 +02:00
Bartosz Taudul
ba61a9ed84
Transfer time deltas, not absolute times.
...
This change significantly reduces network bandwidth requirements.
Implemented for:
- CPU zones,
- GPU zones,
- locks,
- plots,
- memory events.
2019-10-24 00:06:41 +02:00
Bartosz Taudul
707f113bda
Add missing NOMINMAX definitions.
2019-10-10 20:29:06 +02:00
Bartosz Taudul
0f68e1e981
Send thread id in GPU zone end message.
...
We don't care about OpenGL zone thread ids, so the identifier is zeroed.
2019-09-23 16:06:14 +02:00
Bartosz Taudul
82cd667b30
Allow specifying network port in server.
2019-09-21 15:43:01 +02:00
Bartosz Taudul
e13cbf52fd
Allow changing tracy port in client.
2019-09-21 15:11:15 +02:00
Bartosz Taudul
fd245bb5df
Fix includes for gettid() on android.
2019-08-19 15:09:47 +02:00
Bartosz Taudul
20e8a5ecc8
Create tid to pid mapping.
2019-08-17 22:32:41 +02:00
Bartosz Taudul
678e942e9f
Transfer PID of profiled program.
2019-08-17 22:19:04 +02:00
Bartosz Taudul
414f903cc5
Collect thread wakeup data.
2019-08-17 17:05:29 +02:00
Bartosz Taudul
e975c4d7bf
Also retrieve external thread names.
2019-08-16 19:49:16 +02:00
Bartosz Taudul
fe7f56b022
Implement retrieval of external process names.
2019-08-16 19:22:23 +02:00
Bartosz Taudul
71b54dd48a
Always collect thread names.
...
This fixes an issue when a thread was destroyed before its name could be
retrieved.
2019-08-14 16:52:04 +02:00
Bartosz Taudul
92b6da7cc2
SetThreadName() only works on the current thread.
...
This breaking change is required, because kernel trace facilities use
kernel thread ids, which are inaccessible from the pthread_t level.
2019-08-14 02:22:45 +02:00
Bartosz Taudul
339b7fd2a6
Use kernel thread ids on linux.
2019-08-14 01:57:36 +02:00
Bartosz Taudul
8925d026a9
Cosmetics.
2019-08-14 01:57:36 +02:00
Bartosz Taudul
73cbf2eead
Use windows thread ids on cygwin.
2019-08-13 16:22:58 +02:00
Bartosz Taudul
90d26cb1b6
Collect and send context switch events.
2019-08-13 02:35:32 +02:00
Bartosz Taudul
8aa0be39d5
Drop support for CPU id queries.
2019-08-12 23:05:34 +02:00
Bartosz Taudul
d6f32a0839
Serialize lock processing.
...
This makes is much easier to process on the server and opens new
optimization possibilities. It also fixes theoretical problems, which
may be caused by invalid ordering of events with the same timestamp.
2019-08-12 13:51:01 +02:00
Rokas Kupstys
b391e4c21a
Fix multiple build errors when compiling with MinGW.
2019-08-04 15:49:46 +03:00
Bartosz Taudul
12969ee497
Track thread context.
...
This change exploits the fact that events are processed in batches
originating from a single thread. A single message changing thread
context is enough to handle multiple messages, as opposed to inclusion
of thread identifier in each message.
2019-08-02 20:18:08 +02:00