Commit Graph

6576 Commits

Author SHA1 Message Date
Bartosz Taudul
8483ef4310
Indicate currently selected annotation. 2022-03-15 17:36:01 +01:00
Bartosz Taudul
4be2aa0682
Allow adding full-view annotations. 2022-03-15 17:26:12 +01:00
Bartosz Taudul
ba4b261ae4
Make the annotations list always accessible. 2022-03-15 17:25:52 +01:00
Bartosz Taudul
f17a579753
Move adding annotations to a separate function. 2022-03-15 17:25:28 +01:00
Bartosz Taudul
42688c9bf3
Add id to annotation description input box. 2022-03-15 17:24:53 +01:00
Bartosz Taudul
0b1e5d2c96
Define ___tracy_demangle on Android. 2022-03-11 15:40:56 +01:00
Bartosz Taudul
469774b1a9
Merge pull request #341 from teajay-fr/bugfix/access_violation_on_error
Avoid accessing address 0 when reporting a failure.
2022-03-10 14:52:40 +01:00
Thomas Bernard
79e146c957 Avoid accessing address 0 when reporting a failure. 2022-03-10 14:28:31 +01:00
Bartosz Taudul
7d3c7049dc
Fix compilation on MSVC 2015. 2022-03-10 12:27:44 +01:00
Niclas Olmenius
2c79194e7d Ignore uninitialized GPU contexts when rendering GPU events
This fixes an assertion crash when viewing GPU zones when no zones have been
recorded on a GPU context if the client is compiled with TRACY_ON_DEMAND
2022-03-09 19:20:56 +01:00
Bartosz Taudul
90d8762c33
Merge pull request #337 from simonvanbernem/master
Make install_vcpkg_dendencies.bat work from any working directory
2022-03-07 19:08:55 +01:00
Simon van Bernem
8c155f8adc Made install_vcpkg_dendencies.bat work from any working directory
pushd %~dp0 will push the directory that contains the file as the working directory and we also pop it at the end to be a good citizen and restore the previous working directory
2022-03-07 18:44:51 +01:00
Bartosz Taudul
843713a96e
Update manual. 2022-03-03 19:05:16 +01:00
Bartosz Taudul
efe22461cc
Implement going to parent zone in find zone window. 2022-03-03 15:39:07 +01:00
Bartosz Taudul
ee4f4f491f
Merge pull request #334 from daverigby/master
Fix macOS build breaks when _GNU_SOURCE defined
2022-02-28 17:44:59 +01:00
Dave Rigby
2073ffb684 program_invocation_short_name is Linux-specific
'program_invocation_short_name' is Linux-specific; other OSs such as
macOS do not support it.

Fixes build break on macOS 12.2 with _GNU_SOURCE defined.
2022-02-28 16:09:06 +00:00
Dave Rigby
31e4bef135 pthread_setname_np takes 1 arg on macOS
pthread_setname_np() can only set the name of the current thread on
macOS, so only pass a single name argument.

Fixes build break on macOS 12.2 with _GNU_SOURCE defined.
2022-02-28 16:07:12 +00:00
Bartosz Taudul
6c33a23390
Merge pull request #333 from sideeffects/opencl_transient
Add transient OpenCL Zones.
2022-02-27 23:19:11 +01:00
johner
194471487d Update TracyOpenCL.hpp
Add transient OpenCL Zones.
2022-02-27 15:53:24 -06:00
Bartosz Taudul
a0ae37a350
Merge pull request #332 from Lectem/cmake_options
CMake: Add missing options
2022-02-23 22:39:19 +01:00
Clément Grégoire
f4f558bdc9 CMake: New description for TRACY_CALLSTACK 2022-02-23 14:29:20 +01:00
Clément Grégoire
d48fdafde7 Fix IPV4 -> IPv4 typo 2022-02-23 14:16:50 +01:00
Clément Grégoire
92a0feb821 CMake: Add the new TRACY_NO_CALLSTACK option 2022-02-23 14:09:04 +01:00
Clément Grégoire
2844fea858 CMake: Add missing options 2022-02-23 10:58:31 +01:00
Bartosz Taudul
a43da3dc13
Update manual. 2022-02-22 21:26:55 +01:00
Bartosz Taudul
6e1d4a7ec1
Update NEWS. 2022-02-22 21:26:55 +01:00
Bartosz Taudul
e2b0268d7a
Allow disabling callstack handling. 2022-02-22 21:26:55 +01:00
Bartosz Taudul
d318f75123
Merge pull request #325 from BrychDaneel/automatic_timer_fallback
Automatic timer fallback
2022-02-21 13:47:50 +01:00
Daniil Brychikov
a9ba1ce688 Codestyle fixes 2022-02-19 11:44:15 +03:00
Daniil Brychikov
73f6c66cde Automatic timer fallback 2022-02-16 15:18:45 +03:00
Bartosz Taudul
46d2977694
prev_state is long. 2022-02-14 22:34:20 +01:00
Bartosz Taudul
9f2ffb05ac
Check if memory can be allocated in a thread.
Consider running the following code with operator new and delete overloaded to
track allocations with call stacks:

std::thread( []({ thread_local std::string str; });

Each call stack requires a memory allocation to be performed by the profiler,
to make the stack available at a later time. When the thread is created, the
TLS block is initialized and the std::string buffer can be allocated. To track
this allocation, rpmalloc has to be initialized. This initialization also
happens within the TLS block.

Now, when the thread exits, the heap managed by rpmalloc may be released first
during the TLS block destruction (and if the destruction is performed in
reverse creation order, then it *will* be destroyed first, as rpmalloc was
initialized only after the std::string initialization, to track the allocation
performed within). The next thing to happen is destruction of std::string and
release of the memory block it contains.

The release is tracked by the profiler, and as mentioned earlier, to save the
call stack for later use, a memory allocation is needed. But the allocator is
no longer available in this thread, because rpmalloc was released just before!

As a solution to this issue, profiler will detect whether the allocator is
still available and will ignore the call stack, if it's not. The other
solution is to disable the rpmalloc thread cleanup, which may potentially
cause leak-like behavior, in case a large number of threads is spawned and
destroyed.

Note that this is not a water-tight solution. Other functions will still want
to allocate memory for call stacks, but it is rather unlikely that such calls
would be performed during TLS block destruction. It is also possible that the
event queue will run out of allocated space for events at this very moment,
and in such a case the allocator will also fail.
2022-02-14 17:55:46 +01:00
Bartosz Taudul
793e6b0e29
Add rpmalloc thread state accessor. 2022-02-14 17:53:27 +01:00
Bartosz Taudul
20680fa6a3
Keep track of rpmalloc thread shutdown state. 2022-02-14 17:52:33 +01:00
Bartosz Taudul
72ae4d2ee4
Merge pull request #326 from Lectem/install_namepace
CMake install should use the Tracy:: namespace
2022-02-12 01:14:52 +01:00
Bartosz Taudul
278878e4f1
Merge pull request #327 from Lectem/fix_cmake_uwp
Fix missing TracyUwp in the CMake headers install
2022-02-12 00:26:57 +01:00
Clément Grégoire
5a67fa99a7 Fix missing TracyUwp in the CMake headers install 2022-02-12 00:20:37 +01:00
Clément Grégoire
0b6c60de76 Since tracy provides the Tracy::TracyClient it should also install with that namespace 2022-02-11 23:58:47 +01:00
Bartosz Taudul
4084dec939
Update AUTHORS. 2022-02-11 20:22:53 +01:00
Bartosz Taudul
af136f8289
Update NEWS. 2022-02-11 20:21:32 +01:00
Bartosz Taudul
a2d017c456
Merge pull request #324 from shapr3d/uwp_fix
Make Tracy usable in UWP applications
2022-02-11 20:20:18 +01:00
Balazs Kovacsics
aa44cedcd2 Fix indentation 2022-02-11 17:14:16 +01:00
Balazs Kovacsics
85e16ee33a Add UWP platform limitations to manual 2022-02-11 14:14:27 +01:00
Balazs Kovacsics
a0a56eaf9e Move TRACY_UWP define to own header 2022-02-10 20:26:45 +01:00
Balazs Kovacsics
7169f5f30a Fix compiling TracyClient.cpp on UWP with defined TRACY_ENABLE 2022-02-09 22:14:36 +01:00
Balazs Kovacsics
10b3d7ad82 Fix compiling TracyClient.cpp on UWP with undefined TRACY_ENABLE 2022-02-09 18:25:04 +01:00
Bartosz Taudul
92b182d47e
Font Awesome is licensed under SIL OFL.
"In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files."
2022-02-08 21:30:49 +01:00
Bartosz Taudul
fe927d63f7
Update to Font Awesome 6. 2022-02-08 21:27:51 +01:00
Bartosz Taudul
1a4f369d4a
Backport 19471da from ImGui.
https://github.com/ocornut/imgui/issues/4920
2022-02-03 01:59:56 +01:00
Bartosz Taudul
f058ad01fc
Don't process ring buffers when not connected in on-demand mode. 2022-01-31 20:53:10 +01:00