Bartosz Taudul
2bef3629b7
Merge pull request #74 from avoroshilov/manual-lifetime
...
Manual lifetime management for Multi-DLL
2020-07-19 12:06:11 +02:00
Andrey Voroshilov
175ec3e3d8
Moving ThreadExitHandler to a commonly accessible space, adding thread handler usage to SysTrace worker threads
2020-07-18 18:24:49 -07:00
Bartosz Taudul
b8df7a1302
Expose m_isConnected in non-on-demand builds.
2020-07-16 11:22:06 +02:00
Andrey Voroshilov
cbfb19816b
Merge remote-tracking branch 'tracy/master' into manual-lifetime
...
# Conflicts:
# AUTHORS
2020-07-13 01:49:11 -07:00
Andrey Voroshilov
4c397ebe1e
Fixing some of the copy-paste errors
2020-07-12 10:12:50 -07:00
Andrey Voroshilov
3ae84647c4
Moving GetProfiler
back to the original place
2020-07-12 10:10:09 -07:00
Andrey Voroshilov
a758de2f03
Moving GetProfiler
back to the original place
2020-07-12 10:06:09 -07:00
Andrey Voroshilov
6b790d778d
Replacing removing spinlock that is not needed anymore, making TRACY_MANUAL_LIFETIME
a sub-option of TRACY_DELAYED_INIT
, and addressing feedback
2020-07-12 10:04:07 -07:00
Andrey Voroshilov
4d505f507b
Fixed rogue TAB indentation
2020-07-08 03:52:00 -07:00
Andrey Voroshilov
199dc46e7d
Fixing crash on exit due to RP malloc not being deinitialized
2020-07-08 03:50:25 -07:00
Andrey Voroshilov
71ca0683d6
Fixing preprocessor formatting
2020-07-08 03:48:37 -07:00
Bartosz Taudul
5e5bf928a5
Add QPC frequency query to API.
2020-07-07 21:25:35 +02:00
Andrey Voroshilov
6a72560989
Fixing functions case to match the source capitalization rules
2020-07-07 03:12:02 -07:00
Andrey Voroshilov
da5e58682f
Adding manual lifetime management to aid multi-DLL usecase
2020-07-07 00:39:09 -07:00
Bartosz Taudul
384e2e3fa1
Reduce memory requirements of allocated call stacks.
2020-07-05 17:33:29 +02:00
Bartosz Taudul
f718761905
Reduce allocated source location size by 2 bytes.
2020-07-05 17:11:15 +02:00
Bartosz Taudul
4bbeb51e34
Add secure alloc/free macros.
2020-06-24 01:33:26 +02:00
Bartosz Taudul
530e464347
Add checker for profiler availability.
2020-06-24 01:32:57 +02:00
Bartosz Taudul
cf8620b956
Cosmetics.
2020-06-24 01:14:55 +02:00
Simonas Kazlauskas
b0d67064b5
Check for null FILE handles in ReportTopology
...
On Linux `/sys` is not guaranteed to exist. When it doesn't, tracy
would crash with a SIGSEGV due to a nullptr dereference. Not actually
sure how well tracy clients will handle the case where this information
is missing, though.
2020-06-21 20:14:05 +03:00
Bartosz Taudul
b353eb753b
Merge pull request #56 from nagisa/nagisa/fix-macos-build
...
Fix build on macos
2020-06-20 19:57:09 +02:00
Simonas Kazlauskas
b03da81afa
Fix build on macos
...
It was broken by a110b42011
.
In addition, adjust the CI definition to test builds on macOS.
2020-06-20 20:44:55 +03:00
Simonas Kazlauskas
29886435b4
___tracy_alloc_*
take pointer-size pairs
...
This enables better bindings in languages that do not have 0-terminated
strings for source/function name. It does not introduce any additional
overhead in languages that do use 0-terminated strings, either, but it
_is_ a breaking API change.
Fixes https://github.com/wolfpld/tracy/issues/53
2020-06-20 20:35:42 +03:00
Simonas Kazlauskas
a110b42011
Add ___tracy_init_thread function
...
This function needs to be called for each non-main thread before calling
the `___tracy_alloc_` functions.
Alternative way to achieve this could be initializing the allocator
transparently in the `___tracy_alloc_*` calls.
2020-06-20 04:22:32 +03:00
Bartosz Taudul
aa3b0de1f5
Use proper cpuid flag.
2020-06-10 16:25:19 +02:00
Bartosz Taudul
284d49b34b
Change rdtscp check to rdtsc check.
2020-06-08 19:35:42 +02:00
Graydon Hoare
93b7b5a8e7
ensure regs is initialized even if cpuid fails
2020-06-03 19:54:48 -07:00
Bartosz Taudul
2b304581cf
Implement transfer of integral values for zones.
2020-05-24 16:13:09 +02:00
Bartosz Taudul
4eb78f5c86
Auto-initialize profiler in delayed init scenario.
2020-05-19 13:55:54 +02:00
Bartosz Taudul
21c168156c
Restrict client to C++11.
2020-05-13 18:15:12 +02:00
Bartosz Taudul
e9f93f5bc7
Send lean frame images.
2020-05-10 20:16:08 +02:00
Bartosz Taudul
03b5dfacd6
Send lean callstack samples.
2020-05-10 20:00:51 +02:00
Bartosz Taudul
09388f3c99
Send lean callstack allocs.
2020-05-10 19:56:36 +02:00
Bartosz Taudul
5a774c82cc
Send lean callstacks.
2020-05-10 19:43:12 +02:00
Bartosz Taudul
f0ade07be8
Send lean memory callstacks.
2020-05-10 19:28:08 +02:00
Bartosz Taudul
2dc07fca0b
Send lean allocated source locations.
2020-05-10 19:20:59 +02:00
Bartosz Taudul
a47c7d467f
Send x86 processor info in welcome message.
2020-05-06 19:18:17 +02:00
Bartosz Taudul
f13413922d
Use one cpuid implementation.
2020-05-06 18:52:36 +02:00
Bartosz Taudul
14ec246659
Fix typo.
2020-04-24 00:55:57 +02:00
Bartosz Taudul
a5bff2f7e5
Sleep to force rescheduling main thread during init.
...
This fixes problems with first context switch data region possibly not being
available for the main thread, if no rescheduling was performed after sys
tracing has started.
2020-04-14 22:45:32 +02:00
Bartosz Taudul
3b85c51e5f
Search for free listen port, if default is occupied.
2020-04-13 21:40:52 +02:00
Bartosz Taudul
b389ccbb38
Issue just one read call when handling server queries.
2020-04-13 14:32:31 +02:00
Bartosz Taudul
1bbece649f
Implement socket read without exit check.
2020-04-13 14:22:58 +02:00
Bartosz Taudul
b69aaf04e9
Add support for QPC timer.
2020-04-07 22:01:31 +02:00
Bartosz Taudul
8d9a611874
Get rid of unicode ifdefs.
2020-04-07 21:35:37 +02:00
Bartosz Taudul
a6468b6b6e
Sleep when clearing queues if listen port is occupied.
2020-04-04 21:08:13 +02:00
Bartosz Taudul
b2a8b53efa
Query source location of each assembly instruction.
2020-04-01 21:43:03 +02:00
Bartosz Taudul
40281ce2a1
Add default no-op to switch.
2020-03-26 01:07:25 +01:00
Bartosz Taudul
add5b29d03
Report CPU architecture in welcome message.
2020-03-25 21:28:02 +01:00
Bartosz Taudul
ce449ac0e2
Notify server that parameter was handled.
2020-03-25 20:37:26 +01:00