Commit Graph

7906 Commits

Author SHA1 Message Date
Bartosz Taudul
fcda1f6a7f
Keep Lua zone insertion time to a minimum.
No functional changes here. Only the variable retrieval was separated from
filling in the queue items. While with the async queue this makes no
difference, it will be important when the serial queue is used here.
2021-10-09 15:35:11 +02:00
Bartosz Taudul
7527f33d6c
Handle serialized zones. 2021-10-09 15:31:45 +02:00
Bartosz Taudul
2eeade89ba
Add macro for handling serial dequeue thread context checks. 2021-10-09 15:30:58 +02:00
Bartosz Taudul
2d5d4293a9
Move thread context check to a separate function. 2021-10-09 15:16:36 +02:00
Bartosz Taudul
13acec38f7
Use the possibly-synchronous macros in C++ zones. 2021-10-09 14:58:33 +02:00
Bartosz Taudul
6411b35d68
Provide macros for async-or-sync queue insertion.
If fibers are enabled, then some events which were traditionally stored in
async queues will have to be serialized. These macros provide the needed
infrastructure for this.
2021-10-09 14:55:32 +02:00
Bartosz Taudul
250ef2cf6e
Change thread id size from 64 to 32 bits.
Both Windows and Linux use 32-bit thread identifiers. MacOS has a 64-bit
counter, but in practice it will never overflow during profiling and no false
aliasing will happen.

These changes are only done client-side and in the network protocol. The
server still uses 64-bit thread identifiers, to enable virtual threads, etc.
2021-10-08 00:42:52 +02:00
Bartosz Taudul
07bc665d8c
Drop support for Cygwin. 2021-10-07 23:28:40 +02:00
Bartosz Taudul
12f693372a
Cosmetics. 2021-10-07 23:28:31 +02:00
Bartosz Taudul
b7a27d02af
Fix total time in find zone, if limit range is enabled. 2021-09-28 01:11:22 +02:00
Bartosz Taudul
9cb54982cb
Fix crash. 2021-09-27 18:13:45 +02:00
Bartosz Taudul
8eb038280f
Update manual. 2021-09-27 02:19:20 +02:00
Bartosz Taudul
c2e94355f0
Add icon to samples label. 2021-09-27 02:07:02 +02:00
Bartosz Taudul
99f2d0e059
Fix vertical spacing in inline symbols list. 2021-09-27 01:54:37 +02:00
Bartosz Taudul
28ae970887
Remove trailing whitespace. 2021-09-27 01:54:15 +02:00
Bartosz Taudul
d5db075286
Update AUTHORS. 2021-09-23 22:14:52 +02:00
Bartosz Taudul
458fdaa126
Update NEWS. 2021-09-23 22:14:11 +02:00
Bartosz Taudul
b6eee83463
Merge pull request #257 from xxxbxxx/filter-by-srcloc
Filter samples by zones source locations
2021-09-23 22:12:42 +02:00
xavier
f37ef1affd Display the samples after the groups in the "find zone" window
to make it clear they are filtered by selected group.
2021-09-23 21:03:56 +02:00
xavier
61670e30aa Update samples statistics continuously in the "find zone" window 2021-09-23 21:03:56 +02:00
xavier
63acfe72e7 Apply group filters to the samples statistics in the "find zone" window
reduce memory by storing the thread ids next to the zones intead of
making zone lists per thread.

speed-up by reading the zones in linear order rather than bisecting
the whole list for each sample.
2021-09-23 21:03:56 +02:00
xavier
41130d2a69 Avoid useless work when there aren't any samples 2021-09-23 21:03:56 +02:00
xavier
1233b39b69 Move samples before groups in "find zone" window
and fix style
2021-09-23 21:03:56 +02:00
xavier
0089c832f7 Cache samples statistics in the "find zone" window 2021-09-23 21:03:56 +02:00
xavier
ed42c2388c Add samples statistics to the "find zone" window 2021-09-23 21:03:56 +02:00
xavier
e4ce9f0f41 Include threadid in SampleDataRange
TODO: maybe make lists per thread to avoid increasing the packed structure by 2 bytes?
2021-09-23 21:03:56 +02:00
xavier
6b901a7156 Extract DrawSamplesStatistics() 2021-09-23 21:03:56 +02:00
Bartosz Taudul
4c220bdc14
Always display statistics mode selection.
Even if only one option is available.
2021-09-23 18:32:59 +02:00
Bartosz Taudul
f74818ece5
Make accumulation combo consistent. 2021-09-23 18:28:19 +02:00
Bartosz Taudul
9e67491766
Update NEWS. 2021-09-23 18:17:55 +02:00
Bartosz Taudul
bcfc4a4fa7
Fix message thread assignment in import-chrome. 2021-09-23 18:08:03 +02:00
Bartosz Taudul
74d0e79b8c
Vcpkg changed everything again. 2021-09-21 02:09:54 +02:00
Bartosz Taudul
2a994f1c81
Backport freetype 2.11 fix from imgui. 2021-09-20 22:45:52 +02:00
Bartosz Taudul
0b03d7b2ad
Merge pull request #265 from nagisa/nagisa/manual-lifetime-for-c
Expose TRACY_MANUAL_LIFETIME APIs to C API clients
2021-09-18 15:20:42 +02:00
Simonas Kazlauskas
173a165a57 Add startup/shutdown_profiler to the manual
Also remove the documentation for the now-gone `___tracy_init_thread`
function.
2021-09-18 14:54:00 +03:00
Simonas Kazlauskas
54ee3d8a94 Expose TRACY_MANUAL_LIFETIME APIs to C API clients
These are extremely useful for ecosystems such as Rust. There are a
couple of reasons why:

1. Rust strongly advises against relying on life before/after main, as
   it is difficult to reason about. Most users working in Rust will
   generally be quite surprised when encountering this concept.
2. Rust and its package manager makes it easy to use packages (crates)
   and somewhat less straightforward to consider the implications of
   including a dependency.

   In case of the `rust_tracy_client` set of packages, I currently have
   to warn throughout the documentation of the package that simply
   adding a dependency on the bindings package is sufficient to
   potentially accidentally broadcast a lot of information about the
   instrumented binary to the broader world. This seems like a major
   footgun given how easy is it to forget about having added this
   dependency.

Ability to manually manage the lifetime of the profiler would be a great
solution to these problems.
2021-09-18 14:54:00 +03:00
Bartosz Taudul
e929946120
Merge pull request #264 from michal-z/master
Undo my previous change regarding zig cc.
2021-09-17 11:37:24 +02:00
Michal Ziulek
789328f73d
Undo my previous change.
-D_WIN32_WINNT=0x601 must be defined when building TracyClient.cpp for mingw-w64 on Windows. In that case definitions I've added are not needed.
2021-09-17 11:34:40 +02:00
Bartosz Taudul
058e89011f
Merge pull request #261 from michal-z/master
Fixed TracyClient.cpp compile error when using zig cc (#260).
2021-09-14 19:53:28 +02:00
Michal Ziulek
ad97854f12
Fixed compile error when using zig cc. 2021-09-14 19:30:20 +02:00
Bartosz Taudul
d011d65b3c
Merge pull request #255 from graydon/tracy-capture-seconds-argument
Add `-s <seconds>` parameter to capture.cpp
2021-08-26 11:14:23 +02:00
Graydon Hoare
26fd867e52
Add -s <seconds> parameter to capture.cpp 2021-08-25 22:52:23 -07:00
Bartosz Taudul
dfb4020a92
Add missing include for intptr_t. 2021-08-22 13:38:28 +02:00
Bartosz Taudul
673dfd0f02
Update ImGui GLFW and OpenGL 3.x backends.
The new embedded ImGui OpenGL loader has been extended with a couple of
functions and definitions needed by TracyTexture.cpp.
2021-08-22 13:30:46 +02:00
Bartosz Taudul
30445b656f
Update ImGui to 1.84.1 + docking. 2021-08-21 00:52:30 +02:00
Bartosz Taudul
c82bf3915b
Extend thread expansion grace period to half a second.
Previously a framerate-dependent 10 frame count was used.
2021-08-19 00:24:11 +02:00
Bartosz Taudul
38f156259c
Update NEWS. 2021-08-19 00:01:52 +02:00
Bartosz Taudul
fd84b2e026
Vulkan headers must be now manually included. 2021-08-19 00:00:20 +02:00
Bartosz Taudul
e380e3f80e
Merge pull request #249 from lukasberbuer/readme-links
Bundle links in README including latest documentation
2021-08-02 00:40:39 +02:00
Lukas Berbuer
6c3c94b5f4 Bundle links in README including latest documentation 2021-08-01 23:48:45 +02:00